home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CD Fun House 7
/
CD FunHouse 7 For The Macintosh (Wayzata)(1992).iso
/
• The Arcade •
/
Flipper••••
/
Flipper••••.rsrc
/
CODE_1_Main.txt
< prev
next >
Wrap
Text File
|
1991-12-22
|
157KB
|
2,843 lines
# near model CODE resource
# jump table entries: 0-6 (7 of them)
fn00000000:
00000000 4E56 FFFC link A6, -0x0004
00000004 48E7 0108 movem.l -[A7], D7,A4
00000008 49ED F50E lea.l A4, [A5 - 0xAF2]
0000000C A063 syscall MaxApplZone
0000000E 486D FE7E pea.l [A5 - 0x182]
00000012 A86E syscall InitGraf
00000014 A8FE syscall InitFonts
00000016 A912 syscall InitWindows
00000018 A930 syscall InitMenus
0000001A A9CC syscall TEInit
0000001C 7000 moveq.l D0, 0x00
0000001E 2F00 move.l -[A7], D0
00000020 A97B syscall InitDialogs
00000022 A850 syscall InitCursor
00000024 4EBA 1CC2 jsr [PC + 0x1CC2 /* 00001CE8 */]
00000028 7001 moveq.l D0, 0x01
0000002A 2F00 move.l -[A7], D0
0000002C 2F3C 0000 A860 move.l -[A7], 0xA860
00000032 4EBA 1468 jsr [PC + 0x1468 /* 0000149C */]
00000036 1B40 FA18 move.b [A5 - 0x5E8], D0
0000003A 558F subq.l A7, 2
0000003C 7001 moveq.l D0, 0x01
0000003E 3F00 move.w -[A7], D0
00000040 486D F9FA pea.l [A5 - 0x606]
00000044 4EBA 1B38 jsr [PC + 0x1B38 /* 00001B7E */]
00000048 1B6D FA03 FA24 move.b [A5 - 0x5DC], [A5 - 0x5FD]
0000004E 4FEF 000A lea.l A7, [A7 + 0xA]
00000052 6704 beq +0x6 /* 00000058 */
00000054 4EBA 0D4A jsr [PC + 0xD4A /* 00000DA0 */]
label00000058:
00000058 4EBA 0ED2 jsr [PC + 0xED2 /* 00000F2C */]
0000005C 4EBA 0794 jsr [PC + 0x794 /* 000007F2 */]
00000060 598F subq.l A7, 4
00000062 A8D8 syscall NewRgn
00000064 2B5F FD64 move.l [A5 - 0x29C], [A7]+
00000068 598F subq.l A7, 4
0000006A A975 syscall TickCount
0000006C 2E1F move.l D7, [A7]+
0000006E 2B47 FE00 move.l [A5 - 0x200], D7
00000072 422D FA1C clr.b [A5 - 0x5E4]
00000076 397C 0003 0006 move.w [A4 + 0x6], 0x3
0000007C 422D FA1E clr.b [A5 - 0x5E2]
00000080 4A2D FA24 tst.b [A5 - 0x5DC]
00000084 6716 beq +0x18 /* 0000009C */
00000086 598F subq.l A7, 4
00000088 3F3C 2549 move.w -[A7], 0x2549 /* '%I' */
0000008C 7000 moveq.l D0, 0x00
0000008E 2F00 move.l -[A7], D0
00000090 72FF moveq.l D1, 0xFFFFFFFF
00000092 2F01 move.l -[A7], D1
00000094 AA46 syscall GetNewCWindow
00000096 2B5F FA0A move.l [A5 - 0x5F6], [A7]+
0000009A 6014 bra +0x16 /* 000000B0 */
label0000009C:
0000009C 598F subq.l A7, 4
0000009E 3F3C 2549 move.w -[A7], 0x2549 /* '%I' */
000000A2 7000 moveq.l D0, 0x00
000000A4 2F00 move.l -[A7], D0
000000A6 72FF moveq.l D1, 0xFFFFFFFF
000000A8 2F01 move.l -[A7], D1
000000AA A9BD syscall GetNewWindow
000000AC 2B5F FA0A move.l [A5 - 0x5F6], [A7]+
label000000B0:
000000B0 4EBA 0F4E jsr [PC + 0xF4E /* 00001000 */]
000000B4 2F2D FA0A move.l -[A7], [A5 - 0x5F6]
000000B8 A873 syscall SetPort
000000BA 4247 clr.w D7
000000BC 6000 01B2 bra +0x1B4 /* 00000270 */
label000000C0:
000000C0 4A2D FA18 tst.b [A5 - 0x5E8]
000000C4 6718 beq +0x1A /* 000000DE */
000000C6 558F subq.l A7, 2
000000C8 70FF moveq.l D0, 0xFFFFFFFF
000000CA 3F00 move.w -[A7], D0
000000CC 486D FA26 pea.l [A5 - 0x5DA]
000000D0 7205 moveq.l D1, 0x05
000000D2 2F01 move.l -[A7], D1
000000D4 7000 moveq.l D0, 0x00
000000D6 2F00 move.l -[A7], D0
000000D8 A860 syscall WaitNextEvent
000000DA 548F addq.l A7, 2
000000DC 6010 bra +0x12 /* 000000EE */
label000000DE:
000000DE 558F subq.l A7, 2
000000E0 70FF moveq.l D0, 0xFFFFFFFF
000000E2 3F00 move.w -[A7], D0
000000E4 486D FA26 pea.l [A5 - 0x5DA]
000000E8 A970 syscall GetNextEvent
000000EA A9B4 syscall SystemTask
000000EC 548F addq.l A7, 2
label000000EE:
000000EE 7001 moveq.l D0, 0x01
000000F0 B06D FA26 cmp.w D0, [A5 - 0x5DA]
000000F4 670A beq +0xC /* 00000100 */
000000F6 4A2D FA1E tst.b [A5 - 0x5E2]
000000FA 6704 beq +0x6 /* 00000100 */
000000FC 4EAD 0072 jsr [A5 + 0x72 /* export_10 */]
label00000100:
00000100 302D FA26 move.w D0, [A5 - 0x5DA]
00000104 6B00 016A bmi +0x16C /* 00000270 */
00000108 0C40 000B cmpi.w D0, 0xB
0000010C 6E00 0162 bgt +0x164 /* 00000270 */
00000110 D040 add.w D0, D0
00000112 303B 0006 move.w D0, [PC + D0.w + 0x6]
00000116 4EFB 0000 jmp [PC + D0.w]
0000011A 0158 bchg [A0]+, D0
0000011C 001E 0158 ori.b [A6]+, 0x58 /* 'X' */
00000120 00EC .incomplete
00000122 0158 bchg [A0]+, D0
00000124 00EC .incomplete
00000126 014E bchg A6, D0
00000128 0142 bchg D2, D0
0000012A 0154 bchg [A4], D0
0000012C 0158 bchg [A0]+, D0
0000012E 0158 bchg [A0]+, D0
00000130 0158 bchg [A0]+, D0
00000132 6000 013C bra +0x13E /* 00000270 */
00000136 558F subq.l A7, 2
00000138 2F2D FA30 move.l -[A7], [A5 - 0x5D0]
0000013C 486E FFFC pea.l [A6 - 0x4]
00000140 A92C syscall FindWindow
00000142 301F move.w D0, [A7]+
00000144 6B00 012A bmi +0x12C /* 00000270 */
00000148 0C40 0006 cmpi.w D0, 0x6
0000014C 6E00 0122 bgt +0x124 /* 00000270 */
00000150 D040 add.w D0, D0
00000152 303B 0006 move.w D0, [PC + D0.w + 0x6]
00000156 4EFB 0000 jmp [PC + D0.w]
0000015A 0118 btst [A0]+, D0
0000015C 0014 005E ori.b [A4], 0x5E /* '^' */
00000160 006C 0090 0118 ori.w [A4 + 0x118], 0x90
00000166 0118 btst [A0]+, D0
00000168 6000 0106 bra +0x108 /* 00000270 */
0000016C 598F subq.l A7, 4
0000016E 2F2D FA30 move.l -[A7], [A5 - 0x5D0]
00000172 A93D syscall MenuSelect
00000174 4EBA 0F38 jsr [PC + 0xF38 /* 000010AE */]
00000178 70FF moveq.l D0, 0xFFFFFFFF
0000017A 3F00 move.w -[A7], D0
0000017C 7200 moveq.l D1, 0x00
0000017E 3F01 move.w -[A7], D1
00000180 201F move.l D0, [A7]+
00000182 A032 syscall FlushEvents
00000184 4A2D FA20 tst.b [A5 - 0x5E0]
00000188 588F addq.l A7, 4
0000018A 6700 00E4 beq +0xE6 /* 00000270 */
0000018E 4A2D FA1E tst.b [A5 - 0x5E2]
00000192 6600 00DC bne +0xDE /* 00000270 */
00000196 7000 moveq.l D0, 0x00
00000198 102D FA1E move.b D0, [A5 - 0x5E2]
0000019C 4A80 tst.l D0
0000019E 660E bne +0x10 /* 000001AE */
000001A0 426D FA3E clr.w [A5 - 0x5C2]
000001A4 426D FA40 clr.w [A5 - 0x5C0]
000001A8 7000 moveq.l D0, 0x00
000001AA 2B40 FD12 move.l [A5 - 0x2EE], D0
label000001AE:
000001AE 4EBA 08BE jsr [PC + 0x8BE /* 00000A6E */]
000001B2 6000 00BC bra +0xBE /* 00000270 */
000001B6 486D FA26 pea.l [A5 - 0x5DA]
000001BA 2F2E FFFC move.l -[A7], [A6 - 0x4]
000001BE A9B3 syscall SystemClick
000001C0 6000 00AE bra +0xB0 /* 00000270 */
000001C4 598F subq.l A7, 4
000001C6 A924 syscall FrontWindow
000001C8 202E FFFC move.l D0, [A6 - 0x4]
000001CC B09F cmp.l D0, [A7]+
000001CE 670A beq +0xC /* 000001DA */
000001D0 2F2E FFFC move.l -[A7], [A6 - 0x4]
000001D4 A91F syscall SelectWindow
000001D6 6000 0098 bra +0x9A /* 00000270 */
label000001DA:
000001DA 486D FA30 pea.l [A5 - 0x5D0]
000001DE A871 syscall GlobalToLocal
000001E0 4EAD 005A jsr [A5 + 0x5A /* export_7 */]
000001E4 6000 008A bra +0x8C /* 00000270 */
000001E8 2F2E FFFC move.l -[A7], [A6 - 0x4]
000001EC 2F2D FA30 move.l -[A7], [A5 - 0x5D0]
000001F0 486D FE0A pea.l [A5 - 0x1F6]
000001F4 A925 syscall DragWindow
000001F6 70FF moveq.l D0, 0xFFFFFFFF
000001F8 3F00 move.w -[A7], D0
000001FA 7200 moveq.l D1, 0x00
000001FC 3F01 move.w -[A7], D1
000001FE 201F move.l D0, [A7]+
00000200 A032 syscall FlushEvents
00000202 606C bra +0x6E /* 00000270 */
00000204 4A2D FA1E tst.b [A5 - 0x5E2]
00000208 303C 0100 move.w D0, 0x100
0000020C C06D FA34 and.w D0, [A5 - 0x5CC]
00000210 675E beq +0x60 /* 00000270 */
00000212 598F subq.l A7, 4
00000214 203C 0000 00FF move.l D0, 0xFF
0000021A C0AD FA28 and.l D0, [A5 - 0x5D8]
0000021E 3F00 move.w -[A7], D0
00000220 A93E syscall MenuKey
00000222 4EBA 0E8A jsr [PC + 0xE8A /* 000010AE */]
00000226 4A00 tst.b D0
00000228 588F addq.l A7, 4
0000022A 6702 beq +0x4 /* 0000022E */
0000022C 7EFF moveq.l D7, 0xFFFFFFFF
label0000022E:
0000022E 4A2D FA20 tst.b [A5 - 0x5E0]
00000232 673C beq +0x3E /* 00000270 */
00000234 4A2D FA1E tst.b [A5 - 0x5E2]
00000238 6636 bne +0x38 /* 00000270 */
0000023A 4A2D FA1E tst.b [A5 - 0x5E2]
0000023E 660E bne +0x10 /* 0000024E */
00000240 426D FA3E clr.w [A5 - 0x5C2]
00000244 426D FA40 clr.w [A5 - 0x5C0]
00000248 7000 moveq.l D0, 0x00
0000024A 2B40 FD12 move.l [A5 - 0x2EE], D0
label0000024E:
0000024E 4EBA 081E jsr [PC + 0x81E /* 00000A6E */]
00000252 1B7C 0001 FA1E move.b [A5 - 0x5E2], 0x1
00000258 6016 bra +0x18 /* 00000270 */
0000025A 2F2D FA28 move.l -[A7], [A5 - 0x5D8]
0000025E 4EBA 0332 jsr [PC + 0x332 /* 00000592 */]
00000262 588F addq.l A7, 4
00000264 600A bra +0xC /* 00000270 */
00000266 4EBA 002E jsr [PC + 0x2E /* 00000296 */]
0000026A 6004 bra +0x6 /* 00000270 */
0000026C 4EBA 0028 jsr [PC + 0x28 /* 00000296 */]
label00000270:
00000270 7000 moveq.l D0, 0x00
00000272 102D F9F8 move.b D0, [A5 - 0x608]
00000276 4A80 tst.l D0
00000278 6700 FE46 beq -0x1B8 /* 000000C0 */
0000027C 2F2D FA0A move.l -[A7], [A5 - 0x5F6]
00000280 A92D syscall CloseWindow
00000282 2F2D FD64 move.l -[A7], [A5 - 0x29C]
00000286 A8D9 syscall DisposRgn/DisposeRgn
00000288 4EBA 0608 jsr [PC + 0x608 /* 00000892 */]
0000028C 4CEE 1080 FFF4 movem.l D7,A4, [A6 - 0xC]
00000292 4E5E unlink A6
00000294 4E75 rts
fn00000296:
00000296 4E56 FF88 link A6, -0x0078
0000029A 48E7 0318 movem.l -[A7], D6,D7,A3,A4
0000029E 47EE FF90 lea.l A3, [A6 - 0x70]
000002A2 49ED F8E4 lea.l A4, [A5 - 0x71C]
000002A6 3D7C 0200 FFD6 move.w [A6 - 0x2A], 0x200
000002AC 3D7C 00F0 FFD4 move.w [A6 - 0x2C], 0xF0
000002B2 42AE FFD0 clr.l [A6 - 0x30]
000002B6 7E05 moveq.l D7, 0x05
000002B8 7C0D moveq.l D6, 0x0D
000002BA 3D7C 0014 FFE6 move.w [A6 - 0x1A], 0x14
000002C0 3D7C 000F FFE4 move.w [A6 - 0x1C], 0xF
000002C6 42AE FFE0 clr.l [A6 - 0x20]
000002CA 3D7C 0064 FFEE move.w [A6 - 0x12], 0x64 /* 'd' */
000002D0 3D7C 005A FFEC move.w [A6 - 0x14], 0x5A /* 'Z' */
000002D6 3D7C 000A FFEA move.w [A6 - 0x16], 0xA /* '\n' */
000002DC 3D7C 0014 FFE8 move.w [A6 - 0x18], 0x14
000002E2 3D7C 0200 FFF6 move.w [A6 - 0xA], 0x200
000002E8 3D7C 0118 FFF4 move.w [A6 - 0xC], 0x118
000002EE 42AE FFF0 clr.l [A6 - 0x10]
000002F2 3D7C 0200 FFFE move.w [A6 - 0x2], 0x200
000002F8 3D7C 012E FFFC move.w [A6 - 0x4], 0x12E
000002FE 426E FFFA clr.w [A6 - 0x6]
00000302 3D7C 00F9 FFF8 move.w [A6 - 0x8], 0xF9
00000308 2F2D FA0A move.l -[A7], [A5 - 0x5F6]
0000030C A922 syscall BeginUpdate
0000030E 206D FA0A movea.l A0, [A5 - 0x5F6]
00000312 2F28 0018 move.l -[A7], [A0 + 0x18]
00000316 2F2D FD64 move.l -[A7], [A5 - 0x29C]
0000031A A8DC syscall CopyRgn
0000031C 4A2D FA1E tst.b [A5 - 0x5E2]
00000320 6700 0242 beq +0x244 /* 00000564 */
00000324 4A2D FA12 tst.b [A5 - 0x5EE]
00000328 673E beq +0x40 /* 00000368 */
0000032A 206D FA0A movea.l A0, [A5 - 0x5F6]
0000032E 4868 0010 pea.l [A0 + 0x10]
00000332 A8A3 syscall EraseRect
00000334 598F subq.l A7, 4
00000336 3F3C 35E6 move.w -[A7], 0x35E6
0000033A A9BC syscall GetPicture
0000033C 2B5F FD5E move.l [A5 - 0x2A2], [A7]+
00000340 206D FA0A movea.l A0, [A5 - 0x5F6]
00000344 43EE FFD8 lea.l A1, [A6 - 0x28]
00000348 41E8 0010 lea.l A0, [A0 + 0x10]
0000034C 22D8 move.l [A1]+, [A0]+
0000034E 22D8 move.l [A1]+, [A0]+
00000350 206D FD5E movea.l A0, [A5 - 0x2A2]
00000354 2F08 move.l -[A7], A0
00000356 2050 movea.l A0, [A0]
00000358 4868 0002 pea.l [A0 + 0x2]
0000035C A8F6 syscall DrawPicture
0000035E 2F2D FD5E move.l -[A7], [A5 - 0x2A2]
00000362 A9A3 syscall ReleaseResource
00000364 6000 021C bra +0x21E /* 00000582 */
label00000368:
00000368 4A2D FA24 tst.b [A5 - 0x5DC]
0000036C 6708 beq +0xA /* 00000376 */
0000036E 486D F946 pea.l [A5 - 0x6BA]
00000372 AA14 syscall RGBForeColor
00000374 6006 bra +0x8 /* 0000037C */
label00000376:
00000376 486D FE6E pea.l [A5 - 0x192]
0000037A A89D syscall PenPat
label0000037C:
0000037C 2F2D FD64 move.l -[A7], [A5 - 0x29C]
00000380 4EAD 006A jsr [A5 + 0x6A /* export_9 */]
00000384 558F subq.l A7, 2
00000386 486E FFF8 pea.l [A6 - 0x8]
0000038A 2F2D FD64 move.l -[A7], [A5 - 0x29C]
0000038E A8E9 syscall RectInRgn
00000390 4A1F tst.b [A7]+
00000392 588F addq.l A7, 4
00000394 6700 01EC beq +0x1EE /* 00000582 */
00000398 4A2D FA24 tst.b [A5 - 0x5DC]
0000039C 6708 beq +0xA /* 000003A6 */
0000039E 486D F946 pea.l [A5 - 0x6BA]
000003A2 AA14 syscall RGBForeColor
000003A4 6006 bra +0x8 /* 000003AC */
label000003A6:
000003A6 486D FE6E pea.l [A5 - 0x192]
000003AA A89D syscall PenPat
label000003AC:
000003AC 7014 moveq.l D0, 0x14
000003AE 3F00 move.w -[A7], D0
000003B0 3F3C 011A move.w -[A7], 0x11A
000003B4 A893 syscall MoveTo
000003B6 2F0B move.l -[A7], A3
000003B8 3F3C 03E7 move.w -[A7], 0x3E7
000003BC 7001 moveq.l D0, 0x01
000003BE 3F00 move.w -[A7], D0
000003C0 4EBA 1776 jsr [PC + 0x1776 /* 00001B38 */]
000003C4 2F0B move.l -[A7], A3
000003C6 A884 syscall DrawString
000003C8 302D FA3E move.w D0, [A5 - 0x5C2]
000003CC 48C0 ext.l D0
000003CE 5280 addq.l D0, 1
000003D0 2F00 move.l -[A7], D0
000003D2 4EBA 03DA jsr [PC + 0x3DA /* 000007AE */]
000003D6 2F3C 011A 00FA move.l -[A7], 0x11A00FA
000003DC A893 syscall MoveTo
000003DE 2F0B move.l -[A7], A3
000003E0 3F3C 03E7 move.w -[A7], 0x3E7
000003E4 7002 moveq.l D0, 0x02
000003E6 3F00 move.w -[A7], D0
000003E8 4EBA 174E jsr [PC + 0x174E /* 00001B38 */]
000003EC 2F0B move.l -[A7], A3
000003EE A884 syscall DrawString
000003F0 2F2D FD12 move.l -[A7], [A5 - 0x2EE]
000003F4 2F0B move.l -[A7], A3
000003F6 4EBA 1900 jsr [PC + 0x1900 /* 00001CF8 */]
000003FA 2F0B move.l -[A7], A3
000003FC A884 syscall DrawString
000003FE 7014 moveq.l D0, 0x14
00000400 3F00 move.w -[A7], D0
00000402 3F3C 0129 move.w -[A7], 0x129
00000406 A893 syscall MoveTo
00000408 2F0B move.l -[A7], A3
0000040A 3F3C 03E7 move.w -[A7], 0x3E7
0000040E 7003 moveq.l D0, 0x03
00000410 3F00 move.w -[A7], D0
00000412 4EBA 1724 jsr [PC + 0x1724 /* 00001B38 */]
00000416 2F0B move.l -[A7], A3
00000418 A884 syscall DrawString
0000041A 2F3C 0129 00FA move.l -[A7], 0x12900FA
00000420 A893 syscall MoveTo
00000422 2F0B move.l -[A7], A3
00000424 3F3C 03E7 move.w -[A7], 0x3E7
00000428 7004 moveq.l D0, 0x04
0000042A 3F00 move.w -[A7], D0
0000042C 4EBA 170A jsr [PC + 0x170A /* 00001B38 */]
00000430 2F0B move.l -[A7], A3
00000432 A884 syscall DrawString
00000434 3F2D F8D0 move.w -[A7], [A5 - 0x730]
00000438 3F2D F8D2 move.w -[A7], [A5 - 0x72E]
0000043C A893 syscall MoveTo
0000043E 302D FD62 move.w D0, [A5 - 0x29E]
00000442 48C0 ext.l D0
00000444 2F00 move.l -[A7], D0
00000446 4EBA 0366 jsr [PC + 0x366 /* 000007AE */]
0000044A 7005 moveq.l D0, 0x05
0000044C 3F00 move.w -[A7], D0
0000044E 3F3C 0107 move.w -[A7], 0x107
00000452 A893 syscall MoveTo
00000454 7001 moveq.l D0, 0x01
00000456 3F00 move.w -[A7], D0
00000458 A888 syscall TextFace
0000045A 2F0B move.l -[A7], A3
0000045C 3F3C 03E7 move.w -[A7], 0x3E7
00000460 7005 moveq.l D0, 0x05
00000462 3F00 move.w -[A7], D0
00000464 4EBA 16D2 jsr [PC + 0x16D2 /* 00001B38 */]
00000468 2F0B move.l -[A7], A3
0000046A A884 syscall DrawString
0000046C 7000 moveq.l D0, 0x00
0000046E 3F00 move.w -[A7], D0
00000470 A888 syscall TextFace
00000472 486D FD1E pea.l [A5 - 0x2E2]
00000476 A8A1 syscall FrameRect
00000478 4A2D FA16 tst.b [A5 - 0x5EA]
0000047C 508F addq.l A7, 8
0000047E 6700 009E beq +0xA0 /* 0000051E */
00000482 41EE FF88 lea.l A0, [A6 - 0x78]
00000486 43ED FD16 lea.l A1, [A5 - 0x2EA]
0000048A 20D9 move.l [A0]+, [A1]+
0000048C 20D9 move.l [A0]+, [A1]+
0000048E 302D FD1C move.w D0, [A5 - 0x2E4]
00000492 48C0 ext.l D0
00000494 322D FD18 move.w D1, [A5 - 0x2E8]
00000498 48C1 ext.l D1
0000049A 9081 sub.l D0, D1
0000049C 322D F8E2 move.w D1, [A5 - 0x71E]
000004A0 48C1 ext.l D1
000004A2 4EBA 14F4 jsr [PC + 0x14F4 /* 00001998 */]
000004A6 3C00 move.w D6, D0
000004A8 7E00 moveq.l D7, 0x00
000004AA 6066 bra +0x68 /* 00000512 */
label000004AC:
000004AC 4A2D FA24 tst.b [A5 - 0x5DC]
000004B0 671E beq +0x20 /* 000004D0 */
000004B2 2007 move.l D0, D7
000004B4 D040 add.w D0, D0
000004B6 3034 0000 move.w D0, [A4 + D0.w]
000004BA 48C0 ext.l D0
000004BC D080 add.l D0, D0
000004BE 2200 move.l D1, D0
000004C0 D281 add.l D1, D1
000004C2 D081 add.l D0, D1
000004C4 41ED F940 lea.l A0, [A5 - 0x6C0]
000004C8 4870 0000 pea.l [A0 + D0.w]
000004CC AA14 syscall RGBForeColor
000004CE 6016 bra +0x18 /* 000004E6 */
label000004D0:
000004D0 2007 move.l D0, D7
000004D2 D040 add.w D0, D0
000004D4 3234 0000 move.w D1, [A4 + D0.w]
000004D8 48C1 ext.l D1
000004DA E781 asl D1, 3
000004DC 202D FA3A move.l D0, [A5 - 0x5C6]
000004E0 D081 add.l D0, D1
000004E2 2F00 move.l -[A7], D0
000004E4 A89D syscall PenPat
label000004E6:
000004E6 3006 move.w D0, D6
000004E8 D06E FF8A add.w D0, [A6 - 0x76]
000004EC 3D40 FF8E move.w [A6 - 0x72], D0
000004F0 302D F8E2 move.w D0, [A5 - 0x71E]
000004F4 48C0 ext.l D0
000004F6 5380 subq.l D0, 1
000004F8 B087 cmp.l D0, D7
000004FA 6606 bne +0x8 /* 00000502 */
000004FC 3D6D FD1C FF8E move.w [A6 - 0x72], [A5 - 0x2E4]
label00000502:
00000502 486E FF88 pea.l [A6 - 0x78]
00000506 A8A2 syscall PaintRect
00000508 3D6E FF8E FF8A move.w [A6 - 0x76], [A6 - 0x72]
0000050E 2007 move.l D0, D7
00000510 5287 addq.l D7, 1
label00000512:
00000512 302D F8E2 move.w D0, [A5 - 0x71E]
00000516 48C0 ext.l D0
00000518 B087 cmp.l D0, D7
0000051A 6E90 bgt -0x6E /* 000004AC */
0000051C 6064 bra +0x66 /* 00000582 */
label0000051E:
0000051E 4A2D FA24 tst.b [A5 - 0x5DC]
00000522 6708 beq +0xA /* 0000052C */
00000524 486D F94C pea.l [A5 - 0x6B4]
00000528 AA14 syscall RGBForeColor
0000052A 6006 bra +0x8 /* 00000532 */
label0000052C:
0000052C 486D FE56 pea.l [A5 - 0x1AA]
00000530 A89D syscall PenPat
label00000532:
00000532 486D FD16 pea.l [A5 - 0x2EA]
00000536 A8A2 syscall PaintRect
00000538 7007 moveq.l D0, 0x07
0000053A 3F00 move.w -[A7], D0
0000053C A89C syscall PenMode
0000053E 486D FE66 pea.l [A5 - 0x19A]
00000542 A89D syscall PenPat
00000544 486D FD26 pea.l [A5 - 0x2DA]
00000548 A8A2 syscall PaintRect
0000054A 4A2D FA24 tst.b [A5 - 0x5DC]
0000054E 6706 beq +0x8 /* 00000556 */
00000550 486D F946 pea.l [A5 - 0x6BA]
00000554 AA14 syscall RGBForeColor
label00000556:
00000556 486D FE6E pea.l [A5 - 0x192]
0000055A A89D syscall PenPat
0000055C 7008 moveq.l D0, 0x08
0000055E 3F00 move.w -[A7], D0
00000560 A89C syscall PenMode
00000562 601E bra +0x20 /* 00000582 */
label00000564:
00000564 598F subq.l A7, 4
00000566 3F3C 2AB2 move.w -[A7], 0x2AB2
0000056A A9BC syscall GetPicture
0000056C 2B57 FD5E move.l [A5 - 0x2A2], [A7]
00000570 206D FD5E movea.l A0, [A5 - 0x2A2]
00000574 2050 movea.l A0, [A0]
00000576 4868 0002 pea.l [A0 + 0x2]
0000057A A8F6 syscall DrawPicture
0000057C 2F2D FD5E move.l -[A7], [A5 - 0x2A2]
00000580 A9A3 syscall ReleaseResource
label00000582:
00000582 2F2D FA0A move.l -[A7], [A5 - 0x5F6]
00000586 A923 syscall EndUpdate
00000588 4CEE 18C0 FF78 movem.l D6,D7,A3,A4, [A6 - 0x88]
0000058E 4E5E unlink A6
00000590 4E75 rts
fn00000592:
00000592 4E56 FFFC link A6, -0x0004
00000596 48E7 0700 movem.l -[A7], D5,D6,D7
0000059A 2E2E 0008 move.l D7, [A6 + 0x8]
0000059E 3D7C 0028 FFFE move.w [A6 - 0x2], 0x28 /* '(' */
000005A4 3D7C 0028 FFFC move.w [A6 - 0x4], 0x28 /* '(' */
000005AA 558F subq.l A7, 2
000005AC 2F07 move.l -[A7], D7
000005AE A86A syscall HiWord
000005B0 301F move.w D0, [A7]+
000005B2 48C0 ext.l D0
000005B4 2C00 move.l D6, D0
000005B6 558F subq.l A7, 2
000005B8 2F07 move.l -[A7], D7
000005BA A86B syscall LoWord
000005BC 301F move.w D0, [A7]+
000005BE 48C0 ext.l D0
000005C0 2A00 move.l D5, D0
000005C2 4A86 tst.l D6
000005C4 6712 beq +0x14 /* 000005D8 */
000005C6 558F subq.l A7, 2
000005C8 2F2E FFFC move.l -[A7], [A6 - 0x4]
000005CC 2F07 move.l -[A7], D7
000005CE 4EBA 1722 jsr [PC + 0x1722 /* 00001CF2 */]
000005D2 301F move.w D0, [A7]+
000005D4 48C0 ext.l D0
000005D6 2C00 move.l D6, D0
label000005D8:
000005D8 4CEE 00E0 FFF0 movem.l D5,D6,D7, [A6 - 0x10]
000005DE 4E5E unlink A6
000005E0 4E75 rts
export_1:
fn000005E2:
000005E2 4E56 FEEC link A6, -0x0114
000005E6 48E7 1738 movem.l -[A7], D3,D5,D6,D7,A2,A3,A4
000005EA 49ED F920 lea.l A4, [A5 - 0x6E0]
000005EE 3C3C 2328 move.w D6, 0x2328 /* '#(' */
000005F2 3D7C 0063 FFFE move.w [A6 - 0x2], 0x63 /* 'c' */
000005F8 598F subq.l A7, 4
000005FA 2F3C 736E 6420 move.l -[A7], 0x736E6420 /* 'snd ' */
00000600 3F3C 7C9A move.w -[A7], 0x7C9A
00000604 A9A0 syscall GetResource
00000606 2D5F FEEC move.l [A6 - 0x114], [A7]+
0000060A 2F2D FD12 move.l -[A7], [A5 - 0x2EE]
0000060E 486E FEF0 pea.l [A6 - 0x110]
00000612 4EBA 16E4 jsr [PC + 0x16E4 /* 00001CF8 */]
00000616 486E FEF0 pea.l [A6 - 0x110]
0000061A 486D F506 pea.l [A5 - 0xAFA]
0000061E 486D F508 pea.l [A5 - 0xAF8]
00000622 486D F50A pea.l [A5 - 0xAF6]
00000626 A98B syscall ParamText
00000628 7E00 moveq.l D7, 0x00
0000062A 760A moveq.l D3, 0x0A
label0000062C:
0000062C 2007 move.l D0, D7
0000062E E580 asl D0, 2
00000630 41ED FCC2 lea.l A0, [A5 - 0x33E]
00000634 222D FD12 move.l D1, [A5 - 0x2EE]
00000638 B2B0 0800 cmp.l D1, [A0 + D0]
0000063C 6F06 ble +0x8 /* 00000644 */
0000063E 3006 move.w D0, D6
00000640 5246 addq.w D6, 1
00000642 6008 bra +0xA /* 0000064C */
label00000644:
00000644 2007 move.l D0, D7
00000646 5287 addq.l D7, 1
00000648 B687 cmp.l D3, D7
0000064A 6EE0 bgt -0x1E /* 0000062C */
label0000064C:
0000064C 598F subq.l A7, 4
0000064E 3F06 move.w -[A7], D6
00000650 7000 moveq.l D0, 0x00
00000652 2F00 move.l -[A7], D0
00000654 72FF moveq.l D1, 0xFFFFFFFF
00000656 2F01 move.l -[A7], D1
00000658 A97C syscall GetNewDialog
0000065A 2657 movea.l A3, [A7]
0000065C A981 syscall DrawDialog
0000065E 4A2D FA22 tst.b [A5 - 0x5DE]
00000662 6712 beq +0x14 /* 00000676 */
00000664 558F subq.l A7, 2
00000666 7000 moveq.l D0, 0x00
00000668 2F00 move.l -[A7], D0
0000066A 2F2E FEEC move.l -[A7], [A6 - 0x114]
0000066E 7200 moveq.l D1, 0x00
00000670 1F01 move.b -[A7], D1
00000672 A805 syscall SndPlay
00000674 548F addq.l A7, 2
label00000676:
00000676 2F2E FEEC move.l -[A7], [A6 - 0x114]
0000067A A9A3 syscall ReleaseResource
0000067C 0C46 2329 cmpi.w D6, 0x2329 /* '#)' */
00000680 664C bne +0x4E /* 000006CE */
00000682 2F0B move.l -[A7], A3
00000684 7003 moveq.l D0, 0x03
00000686 3F00 move.w -[A7], D0
00000688 486E FFF0 pea.l [A6 - 0x10]
0000068C 486E FFF2 pea.l [A6 - 0xE]
00000690 486E FFF6 pea.l [A6 - 0xA]
00000694 A98D syscall GetDialogItem/GetDItem
00000696 6036 bra +0x38 /* 000006CE */
label00000698:
00000698 7000 moveq.l D0, 0x00
0000069A 2F00 move.l -[A7], D0
0000069C 486E FFFE pea.l [A6 - 0x2]
000006A0 A991 syscall ModalDialog
000006A2 7003 moveq.l D0, 0x03
000006A4 B06E FFFE cmp.w D0, [A6 - 0x2]
000006A8 6624 bne +0x26 /* 000006CE */
000006AA 2F2E FFF2 move.l -[A7], [A6 - 0xE]
000006AE 2F0C move.l -[A7], A4
000006B0 A990 syscall GetDialogItemText/GetIText
000006B2 7000 moveq.l D0, 0x00
000006B4 1014 move.b D0, [A4]
000006B6 0C00 0010 cmpi.b D0, 0x10
000006BA 6312 bls +0x14 /* 000006CE */
000006BC 7001 moveq.l D0, 0x01
000006BE 3F00 move.w -[A7], D0
000006C0 A9C8 syscall SysBeep
000006C2 18BC 0010 move.b [A4], 0x10
000006C6 2F2E FFF2 move.l -[A7], [A6 - 0xE]
000006CA 2F0C move.l -[A7], A4
000006CC A98F syscall SetDialogItemText/SetIText
label000006CE:
000006CE 7001 moveq.l D0, 0x01
000006D0 B06E FFFE cmp.w D0, [A6 - 0x2]
000006D4 66C2 bne -0x3C /* 00000698 */
000006D6 0C46 2329 cmpi.w D6, 0x2329 /* '#)' */
000006DA 6608 bne +0xA /* 000006E4 */
000006DC 2F2E FFF2 move.l -[A7], [A6 - 0xE]
000006E0 2F0C move.l -[A7], A4
000006E2 A990 syscall GetDialogItemText/GetIText
label000006E4:
000006E4 2F0B move.l -[A7], A3
000006E6 A983 syscall DisposeDialog
000006E8 0C46 2329 cmpi.w D6, 0x2329 /* '#)' */
000006EC 6600 0090 bne +0x92 /* 0000077E */
000006F0 7000 moveq.l D0, 0x00
000006F2 1014 move.b D0, [A4]
000006F4 0C00 0010 cmpi.b D0, 0x10
000006F8 6304 bls +0x6 /* 000006FE */
000006FA 18BC 0010 move.b [A4], 0x10
label000006FE:
000006FE 7E00 moveq.l D7, 0x00
00000700 760A moveq.l D3, 0x0A
label00000702:
00000702 2007 move.l D0, D7
00000704 E580 asl D0, 2
00000706 41ED FCC2 lea.l A0, [A5 - 0x33E]
0000070A 222D FD12 move.l D1, [A5 - 0x2EE]
0000070E B2B0 0800 cmp.l D1, [A0 + D0]
00000712 6E08 bgt +0xA /* 0000071C */
00000714 2007 move.l D0, D7
00000716 5287 addq.l D7, 1
00000718 B687 cmp.l D3, D7
0000071A 6EE6 bgt -0x18 /* 00000702 */
label0000071C:
0000071C 7C09 moveq.l D6, 0x09
0000071E 6036 bra +0x38 /* 00000756 */
label00000720:
00000720 2A06 move.l D5, D6
00000722 EB85 asl D5, 5
00000724 41ED FA22 lea.l A0, [A5 - 0x5DE]
00000728 D1C5 add.l A0, D5
0000072A 43ED FA42 lea.l A1, [A5 - 0x5BE]
0000072E D3C5 add.l A1, D5
00000730 45ED FA22 lea.l A2, [A5 - 0x5DE]
00000734 7000 moveq.l D0, 0x00
00000736 1032 5800 move.b D0, [A2 + D5]
0000073A 5240 addq.w D0, 1
0000073C 48C0 ext.l D0
0000073E A02E syscall BlockMove/BlockMoveData
00000740 2A06 move.l D5, D6
00000742 E585 asl D5, 2
00000744 41ED FCBE lea.l A0, [A5 - 0x342]
00000748 43ED FCC2 lea.l A1, [A5 - 0x33E]
0000074C 23B0 5800 5800 move.l [A1 + D5], [A0 + D5]
00000752 2006 move.l D0, D6
00000754 5386 subq.l D6, 1
label00000756:
00000756 BE86 cmp.l D7, D6
00000758 66C6 bne -0x38 /* 00000720 */
0000075A 204C movea.l A0, A4
0000075C 2007 move.l D0, D7
0000075E EB80 asl D0, 5
00000760 43ED FA42 lea.l A1, [A5 - 0x5BE]
00000764 D3C0 add.l A1, D0
00000766 7000 moveq.l D0, 0x00
00000768 1014 move.b D0, [A4]
0000076A 5240 addq.w D0, 1
0000076C 48C0 ext.l D0
0000076E A02E syscall BlockMove/BlockMoveData
00000770 2007 move.l D0, D7
00000772 E580 asl D0, 2
00000774 41ED FCC2 lea.l A0, [A5 - 0x33E]
00000778 21AD FD12 0800 move.l [A0 + D0], [A5 - 0x2EE]
label0000077E:
0000077E 422D FA1E clr.b [A5 - 0x5E2]
00000782 422D FA20 clr.b [A5 - 0x5E0]
00000786 206D FA0A movea.l A0, [A5 - 0x5F6]
0000078A 4868 0010 pea.l [A0 + 0x10]
0000078E A8A3 syscall EraseRect
00000790 206D FA0A movea.l A0, [A5 - 0x5F6]
00000794 4868 0010 pea.l [A0 + 0x10]
00000798 A928 syscall InvalRect
0000079A 7000 moveq.l D0, 0x00
0000079C 2F00 move.l -[A7], D0
0000079E 4EBA 0C4A jsr [PC + 0xC4A /* 000013EA */]
000007A2 588F addq.l A7, 4
000007A4 4CEE 1CE8 FED0 movem.l D3,D5,D6,D7,A2,A3,A4, [A6 - 0x130]
000007AA 4E5E unlink A6
000007AC 4E75 rts
fn000007AE:
000007AE 4E56 FF00 link A6, -0x0100
000007B2 2F0C move.l -[A7], A4
000007B4 49EE FF00 lea.l A4, [A6 - 0x100]
000007B8 302E 000A move.w D0, [A6 + 0xA]
000007BC 48C0 ext.l D0
000007BE 2F00 move.l -[A7], D0
000007C0 2F0C move.l -[A7], A4
000007C2 4EBA 1534 jsr [PC + 0x1534 /* 00001CF8 */]
000007C6 2F0C move.l -[A7], A4
000007C8 A884 syscall DrawString
000007CA 286E FEFC movea.l A4, [A6 - 0x104]
000007CE 4E5E unlink A6
000007D0 4E75 rts
fn000007D2:
000007D2 4E56 FF00 link A6, -0x0100
000007D6 2F0C move.l -[A7], A4
000007D8 49EE FF00 lea.l A4, [A6 - 0x100]
000007DC 2F2E 0008 move.l -[A7], [A6 + 0x8]
000007E0 2F0C move.l -[A7], A4
000007E2 4EBA 1514 jsr [PC + 0x1514 /* 00001CF8 */]
000007E6 2F0C move.l -[A7], A4
000007E8 A884 syscall DrawString
000007EA 286E FEFC movea.l A4, [A6 - 0x104]
000007EE 4E5E unlink A6
000007F0 4E75 rts
fn000007F2:
000007F2 4E56 FEF8 link A6, -0x0108
000007F6 48E7 1118 movem.l -[A7], D3,D7,A3,A4
000007FA 47EE FEFA lea.l A3, [A6 - 0x106]
000007FE 49EE FFFA lea.l A4, [A6 - 0x6]
00000802 7E00 moveq.l D7, 0x00
00000804 760A moveq.l D3, 0x0A
label00000806:
00000806 2007 move.l D0, D7
00000808 EB80 asl D0, 5
0000080A 41ED FA42 lea.l A0, [A5 - 0x5BE]
0000080E 4230 0800 clr.b [A0 + D0]
00000812 2007 move.l D0, D7
00000814 E580 asl D0, 2
00000816 41ED FCC2 lea.l A0, [A5 - 0x33E]
0000081A 7200 moveq.l D1, 0x00
0000081C 2181 0800 move.l [A0 + D0], D1
00000820 2007 move.l D0, D7
00000822 5287 addq.l D7, 1
00000824 B687 cmp.l D3, D7
00000826 6EDE bgt -0x20 /* 00000806 */
00000828 558F subq.l A7, 2
0000082A 2F0B move.l -[A7], A3
0000082C 486E FFFE pea.l [A6 - 0x2]
00000830 4EBA 12E2 jsr [PC + 0x12E2 /* 00001B14 */]
00000834 558F subq.l A7, 2
00000836 4878 0910 push.l 0x910
0000083A 3F2E FFFE move.w -[A7], [A6 - 0x2]
0000083E 486E FEF8 pea.l [A6 - 0x108]
00000842 4EBA 1238 jsr [PC + 0x1238 /* 00001A7C */]
00000846 4A5F tst.w [A7]+
00000848 548F addq.l A7, 2
0000084A 6636 bne +0x38 /* 00000882 */
0000084C 2D7C 0000 02D0 FFFA move.l [A6 - 0x6], 0x2D0
00000854 558F subq.l A7, 2
00000856 3F2E FEF8 move.w -[A7], [A6 - 0x108]
0000085A 2F0C move.l -[A7], A4
0000085C 486D FA42 pea.l [A5 - 0x5BE]
00000860 4EBA 126A jsr [PC + 0x126A /* 00001ACC */]
00000864 4A5F tst.w [A7]+
00000866 6606 bne +0x8 /* 0000086E */
00000868 422D FA0E clr.b [A5 - 0x5F2]
0000086C 6006 bra +0x8 /* 00000874 */
label0000086E:
0000086E 1B7C 0001 FA0E move.b [A5 - 0x5F2], 0x1
label00000874:
00000874 558F subq.l A7, 2
00000876 3F2E FEF8 move.w -[A7], [A6 - 0x108]
0000087A 4EBA 1236 jsr [PC + 0x1236 /* 00001AB2 */]
0000087E 548F addq.l A7, 2
00000880 6006 bra +0x8 /* 00000888 */
label00000882:
00000882 1B7C 0001 FA0E move.b [A5 - 0x5F2], 0x1
label00000888:
00000888 4CEE 1888 FEE8 movem.l D3,D7,A3,A4, [A6 - 0x118]
0000088E 4E5E unlink A6
00000890 4E75 rts
fn00000892:
00000892 4E56 FEF8 link A6, -0x0108
00000896 48E7 0018 movem.l -[A7], A3,A4
0000089A 47EE FEFA lea.l A3, [A6 - 0x106]
0000089E 49EE FFFA lea.l A4, [A6 - 0x6]
000008A2 558F subq.l A7, 2
000008A4 2F0B move.l -[A7], A3
000008A6 486E FFFE pea.l [A6 - 0x2]
000008AA 4EBA 1268 jsr [PC + 0x1268 /* 00001B14 */]
000008AE 558F subq.l A7, 2
000008B0 4878 0910 push.l 0x910
000008B4 3F2E FFFE move.w -[A7], [A6 - 0x2]
000008B8 486E FEF8 pea.l [A6 - 0x108]
000008BC 4EBA 11BE jsr [PC + 0x11BE /* 00001A7C */]
000008C0 4A5F tst.w [A7]+
000008C2 548F addq.l A7, 2
000008C4 6636 bne +0x38 /* 000008FC */
000008C6 2D7C 0000 02D0 FFFA move.l [A6 - 0x6], 0x2D0
000008CE 558F subq.l A7, 2
000008D0 3F2E FEF8 move.w -[A7], [A6 - 0x108]
000008D4 2F0C move.l -[A7], A4
000008D6 486D FA42 pea.l [A5 - 0x5BE]
000008DA 4EBA 11F4 jsr [PC + 0x11F4 /* 00001AD0 */]
000008DE 4A5F tst.w [A7]+
000008E0 6606 bne +0x8 /* 000008E8 */
000008E2 422D FA0E clr.b [A5 - 0x5F2]
000008E6 6006 bra +0x8 /* 000008EE */
label000008E8:
000008E8 1B7C 0001 FA0E move.b [A5 - 0x5F2], 0x1
label000008EE:
000008EE 558F subq.l A7, 2
000008F0 3F2E FEF8 move.w -[A7], [A6 - 0x108]
000008F4 4EBA 11BC jsr [PC + 0x11BC /* 00001AB2 */]
000008F8 548F addq.l A7, 2
000008FA 6006 bra +0x8 /* 00000902 */
label000008FC:
000008FC 1B7C 0001 FA0E move.b [A5 - 0x5F2], 0x1
label00000902:
00000902 4CEE 1800 FEF0 movem.l A3,A4, [A6 - 0x110]
00000908 4E5E unlink A6
0000090A 4E75 rts
fn0000090C:
0000090C 4E56 FFEE link A6, -0x0012
00000910 2F0C move.l -[A7], A4
00000912 3D7C 0063 FFEE move.w [A6 - 0x12], 0x63 /* 'c' */
00000918 3D7C 00D0 FFF6 move.w [A6 - 0xA], 0xD0
0000091E 3D7C 00C8 FFF4 move.w [A6 - 0xC], 0xC8
00000924 3D7C 0008 FFF2 move.w [A6 - 0xE], 0x8
0000092A 3D7C 0028 FFF0 move.w [A6 - 0x10], 0x28 /* '(' */
00000930 3D7C 0150 FFFE move.w [A6 - 0x2], 0x150
00000936 3D7C 00C8 FFFC move.w [A6 - 0x4], 0xC8
0000093C 3D7C 00D8 FFFA move.w [A6 - 0x6], 0xD8
00000942 3D7C 0028 FFF8 move.w [A6 - 0x8], 0x28 /* '(' */
00000948 422D FA0E clr.b [A5 - 0x5F2]
0000094C 4A2D FA0E tst.b [A5 - 0x5F2]
00000950 6710 beq +0x12 /* 00000962 */
00000952 558F subq.l A7, 2
00000954 3F3C 2694 move.w -[A7], 0x2694
00000958 7000 moveq.l D0, 0x00
0000095A 2F00 move.l -[A7], D0
0000095C A985 syscall Alert
0000095E 548F addq.l A7, 2
00000960 6054 bra +0x56 /* 000009B6 */
label00000962:
00000962 598F subq.l A7, 4
00000964 3F3C 47A9 move.w -[A7], 0x47A9
00000968 7000 moveq.l D0, 0x00
0000096A 2F00 move.l -[A7], D0
0000096C 72FF moveq.l D1, 0xFFFFFFFF
0000096E 2F01 move.l -[A7], D1
00000970 A97C syscall GetNewDialog
00000972 2857 movea.l A4, [A7]
00000974 7005 moveq.l D0, 0x05
00000976 3F00 move.w -[A7], D0
00000978 7200 moveq.l D1, 0x00
0000097A 3F01 move.w -[A7], D1
0000097C 486D 0032 pea.l [A5 + 0x32 /* export_2 */]
00000980 486E FFF0 pea.l [A6 - 0x10]
00000984 A98E syscall SetDialogItem/SetDItem
00000986 2F0C move.l -[A7], A4
00000988 7006 moveq.l D0, 0x06
0000098A 3F00 move.w -[A7], D0
0000098C 7200 moveq.l D1, 0x00
0000098E 3F01 move.w -[A7], D1
00000990 486D 003A pea.l [A5 + 0x3A /* export_3 */]
00000994 486E FFF8 pea.l [A6 - 0x8]
00000998 A98E syscall SetDialogItem/SetDItem
0000099A 2F0C move.l -[A7], A4
0000099C A915 syscall ShowWindow
0000099E 600A bra +0xC /* 000009AA */
label000009A0:
000009A0 7000 moveq.l D0, 0x00
000009A2 2F00 move.l -[A7], D0
000009A4 486E FFEE pea.l [A6 - 0x12]
000009A8 A991 syscall ModalDialog
label000009AA:
000009AA 7001 moveq.l D0, 0x01
000009AC B06E FFEE cmp.w D0, [A6 - 0x12]
000009B0 66EE bne -0x10 /* 000009A0 */
000009B2 2F0C move.l -[A7], A4
000009B4 A983 syscall DisposeDialog
label000009B6:
000009B6 286E FFEA movea.l A4, [A6 - 0x16]
000009BA 4E5E unlink A6
000009BC 4E75 rts
export_2:
000009BE 4E56 FFF8 link A6, -0x0008
000009C2 48E7 1300 movem.l -[A7], D3,D6,D7
000009C6 7C35 moveq.l D6, 0x35
000009C8 3D7C 00D0 FFFE move.w [A6 - 0x2], 0xD0
000009CE 3D7C 00C8 FFFC move.w [A6 - 0x4], 0xC8
000009D4 3D7C 0008 FFFA move.w [A6 - 0x6], 0x8
000009DA 3D7C 0028 FFF8 move.w [A6 - 0x8], 0x28 /* '(' */
000009E0 7E00 moveq.l D7, 0x00
label000009E2:
000009E2 700A moveq.l D0, 0x0A
000009E4 3F00 move.w -[A7], D0
000009E6 3F06 move.w -[A7], D6
000009E8 A893 syscall MoveTo
000009EA 2007 move.l D0, D7
000009EC EB80 asl D0, 5
000009EE 41ED FA42 lea.l A0, [A5 - 0x5BE]
000009F2 4870 0800 pea.l [A0 + D0]
000009F6 A884 syscall DrawString
000009F8 0646 000D addi.w D6, 0xD /* '\r' */
000009FC 2007 move.l D0, D7
000009FE 5287 addq.l D7, 1
00000A00 700A moveq.l D0, 0x0A
00000A02 B087 cmp.l D0, D7
00000A04 6EDC bgt -0x22 /* 000009E2 */
00000A06 4CEE 00C8 FFEC movem.l D3,D6,D7, [A6 - 0x14]
00000A0C 4E5E unlink A6
00000A0E 205F movea.l A0, [A7]+
00000A10 5C4F addq.w A7, 6
00000A12 4ED0 jmp [A0]
export_3:
00000A14 4E56 FFF8 link A6, -0x0008
00000A18 48E7 1300 movem.l -[A7], D3,D6,D7
00000A1C 3D7C 0150 FFFE move.w [A6 - 0x2], 0x150
00000A22 3D7C 00C8 FFFC move.w [A6 - 0x4], 0xC8
00000A28 3D7C 00D8 FFFA move.w [A6 - 0x6], 0xD8
00000A2E 3D7C 0028 FFF8 move.w [A6 - 0x8], 0x28 /* '(' */
00000A34 7C35 moveq.l D6, 0x35
00000A36 7E00 moveq.l D7, 0x00
label00000A38:
00000A38 3F3C 00DC move.w -[A7], 0xDC
00000A3C 3F06 move.w -[A7], D6
00000A3E A893 syscall MoveTo
00000A40 2007 move.l D0, D7
00000A42 E580 asl D0, 2
00000A44 41ED FCC2 lea.l A0, [A5 - 0x33E]
00000A48 2F30 0800 move.l -[A7], [A0 + D0]
00000A4C 4EBA FD84 jsr [PC - 0x27C /* 000007D2 */]
00000A50 0646 000D addi.w D6, 0xD /* '\r' */
00000A54 588F addq.l A7, 4
00000A56 2007 move.l D0, D7
00000A58 5287 addq.l D7, 1
00000A5A 700A moveq.l D0, 0x0A
00000A5C B087 cmp.l D0, D7
00000A5E 6ED8 bgt -0x26 /* 00000A38 */
00000A60 4CEE 00C8 FFEC movem.l D3,D6,D7, [A6 - 0x14]
00000A66 4E5E unlink A6
00000A68 205F movea.l A0, [A7]+
00000A6A 5C4F addq.w A7, 6
00000A6C 4ED0 jmp [A0]
fn00000A6E:
00000A6E 4E56 FFF2 link A6, -0x000E
00000A72 48E7 1F18 movem.l -[A7], D3,D4,D5,D6,D7,A3,A4
00000A76 47ED F8E4 lea.l A3, [A5 - 0x71C]
00000A7A 49ED F50E lea.l A4, [A5 - 0xAF2]
00000A7E 1B7C 0001 FA1A move.b [A5 - 0x5E6], 0x1
00000A84 4A6D FA3E tst.w [A5 - 0x5C2]
00000A88 664C bne +0x4E /* 00000AD6 */
00000A8A 4A2D FA22 tst.b [A5 - 0x5DE]
00000A8E 6746 beq +0x48 /* 00000AD6 */
00000A90 598F subq.l A7, 4
00000A92 2F3C 736E 6420 move.l -[A7], 0x736E6420 /* 'snd ' */
00000A98 3F3C 4CE5 move.w -[A7], 0x4CE5
00000A9C A9A0 syscall GetResource
00000A9E 2D5F FFF2 move.l [A6 - 0xE], [A7]+
00000AA2 7E00 moveq.l D7, 0x00
label00000AA4:
00000AA4 558F subq.l A7, 2
00000AA6 7000 moveq.l D0, 0x00
00000AA8 2F00 move.l -[A7], D0
00000AAA 2F2E FFF2 move.l -[A7], [A6 - 0xE]
00000AAE 7200 moveq.l D1, 0x00
00000AB0 1F01 move.b -[A7], D1
00000AB2 A805 syscall SndPlay
00000AB4 548F addq.l A7, 2
00000AB6 2007 move.l D0, D7
00000AB8 5287 addq.l D7, 1
00000ABA 7003 moveq.l D0, 0x03
00000ABC B087 cmp.l D0, D7
00000ABE 6EE4 bgt -0x1A /* 00000AA4 */
00000AC0 2F2E FFF2 move.l -[A7], [A6 - 0xE]
00000AC4 A9A3 syscall ReleaseResource
00000AC6 3B7C 0010 FD62 move.w [A5 - 0x29E], 0x10
00000ACC 4A2D FA24 tst.b [A5 - 0x5DC]
00000AD0 6704 beq +0x6 /* 00000AD6 */
00000AD2 4EBA 02CC jsr [PC + 0x2CC /* 00000DA0 */]
label00000AD6:
00000AD6 206D FA0A movea.l A0, [A5 - 0x5F6]
00000ADA 4868 0010 pea.l [A0 + 0x10]
00000ADE A8A3 syscall EraseRect
00000AE0 206D FA0A movea.l A0, [A5 - 0x5F6]
00000AE4 4868 0010 pea.l [A0 + 0x10]
00000AE8 A928 syscall InvalRect
00000AEA 302D FA3E move.w D0, [A5 - 0x5C2]
00000AEE 48C0 ext.l D0
00000AF0 81FC 0007 divs.w D0, 0x7
00000AF4 5640 addq.w D0, 3
00000AF6 3B40 FD40 move.w [A5 - 0x2C0], D0
00000AFA 7005 moveq.l D0, 0x05
00000AFC B06D FD40 cmp.w D0, [A5 - 0x2C0]
00000B00 6C06 bge +0x8 /* 00000B08 */
00000B02 3B7C 0005 FD40 move.w [A5 - 0x2C0], 0x5
label00000B08:
00000B08 302D FA3E move.w D0, [A5 - 0x5C2]
00000B0C 48C0 ext.l D0
00000B0E 81FC 0004 divs.w D0, 0x4
00000B12 5640 addq.w D0, 3
00000B14 3B40 FD3E move.w [A5 - 0x2C2], D0
00000B18 7008 moveq.l D0, 0x08
00000B1A B06D FD3E cmp.w D0, [A5 - 0x2C2]
00000B1E 6C06 bge +0x8 /* 00000B26 */
00000B20 3B7C 0008 FD3E move.w [A5 - 0x2C2], 0x8
label00000B26:
00000B26 302D FA3E move.w D0, [A5 - 0x5C2]
00000B2A 48C0 ext.l D0
00000B2C 81FC 0005 divs.w D0, 0x5
00000B30 5840 addq.w D0, 4
00000B32 3B40 F8E2 move.w [A5 - 0x71E], D0
00000B36 701E moveq.l D0, 0x1E
00000B38 B06D F8E2 cmp.w D0, [A5 - 0x71E]
00000B3C 6E06 bgt +0x8 /* 00000B44 */
00000B3E 3B7C 001E F8E2 move.w [A5 - 0x71E], 0x1E
label00000B44:
00000B44 7E00 moveq.l D7, 0x00
00000B46 761E moveq.l D3, 0x1E
label00000B48:
00000B48 2007 move.l D0, D7
00000B4A D040 add.w D0, D0
00000B4C 3787 0000 move.w [A3 + D0.w], D7
00000B50 2007 move.l D0, D7
00000B52 5287 addq.l D7, 1
00000B54 B687 cmp.l D3, D7
00000B56 6EF0 bgt -0xE /* 00000B48 */
00000B58 7E00 moveq.l D7, 0x00
label00000B5A:
00000B5A 701E moveq.l D0, 0x1E
00000B5C 2F00 move.l -[A7], D0
00000B5E 4EAD 0062 jsr [A5 + 0x62 /* export_8 */]
00000B62 3C00 move.w D6, D0
00000B64 701E moveq.l D0, 0x1E
00000B66 2F00 move.l -[A7], D0
00000B68 4EAD 0062 jsr [A5 + 0x62 /* export_8 */]
00000B6C 3A00 move.w D5, D0
00000B6E 508F addq.l A7, 8
00000B70 BA46 cmp.w D5, D6
00000B72 67E6 beq -0x18 /* 00000B5A */
00000B74 3006 move.w D0, D6
00000B76 48C0 ext.l D0
00000B78 D080 add.l D0, D0
00000B7A 3D40 FFF4 move.w [A6 - 0xC], D0
00000B7E 3D73 0000 FFF2 move.w [A6 - 0xE], [A3 + D0.w]
00000B84 3805 move.w D4, D5
00000B86 48C4 ext.l D4
00000B88 D884 add.l D4, D4
00000B8A 302E FFF4 move.w D0, [A6 - 0xC]
00000B8E 37B3 4000 0000 move.w [A3 + D0.w], [A3 + D4.w]
00000B94 37AE FFF2 4000 move.w [A3 + D4.w], [A6 - 0xE]
00000B9A 2007 move.l D0, D7
00000B9C 5287 addq.l D7, 1
00000B9E 0C87 0000 05DC cmpi.l D7, 0x5DC
00000BA4 6DB4 blt -0x4A /* 00000B5A */
00000BA6 303C 00F0 move.w D0, 0xF0
00000BAA 48C0 ext.l D0
00000BAC 81ED FD40 divs.w D0, [A5 - 0x2C0]
00000BB0 3D40 FFFE move.w [A6 - 0x2], D0
00000BB4 303C 01FA move.w D0, 0x1FA
00000BB8 48C0 ext.l D0
00000BBA 81ED FD3E divs.w D0, [A5 - 0x2C2]
00000BBE 3800 move.w D4, D0
00000BC0 7C00 moveq.l D6, 0x00
00000BC2 6000 0122 bra +0x124 /* 00000CE6 */
label00000BC6:
00000BC6 486E FFF6 pea.l [A6 - 0xA]
00000BCA 7004 moveq.l D0, 0x04
00000BCC 3F00 move.w -[A7], D0
00000BCE 322E FFFE move.w D1, [A6 - 0x2]
00000BD2 48C1 ext.l D1
00000BD4 2006 move.l D0, D6
00000BD6 4EBA 0D98 jsr [PC + 0xD98 /* 00001970 */]
00000BDA 5840 addq.w D0, 4
00000BDC 3F00 move.w -[A7], D0
00000BDE 3F04 move.w -[A7], D4
00000BE0 302E FFFE move.w D0, [A6 - 0x2]
00000BE4 48C0 ext.l D0
00000BE6 2200 move.l D1, D0
00000BE8 2006 move.l D0, D6
00000BEA 4EBA 0D84 jsr [PC + 0xD84 /* 00001970 */]
00000BEE 322E FFFE move.w D1, [A6 - 0x2]
00000BF2 D240 add.w D1, D0
00000BF4 3F01 move.w -[A7], D1
00000BF6 A8A7 syscall SetRect
00000BF8 7E00 moveq.l D7, 0x00
00000BFA 6000 00DA bra +0xDC /* 00000CD6 */
label00000BFE:
00000BFE 4A87 tst.l D7
00000C00 670C beq +0xE /* 00000C0E */
00000C02 486E FFF6 pea.l [A6 - 0xA]
00000C06 3F04 move.w -[A7], D4
00000C08 7000 moveq.l D0, 0x00
00000C0A 3F00 move.w -[A7], D0
00000C0C A8A8 syscall OffsetRect
label00000C0E:
00000C0E 302D FD3E move.w D0, [A5 - 0x2C2]
00000C12 48C0 ext.l D0
00000C14 5380 subq.l D0, 1
00000C16 B087 cmp.l D0, D7
00000C18 6606 bne +0x8 /* 00000C20 */
00000C1A 3D7C 01FC FFFC move.w [A6 - 0x4], 0x1FC
label00000C20:
00000C20 302D FD40 move.w D0, [A5 - 0x2C0]
00000C24 48C0 ext.l D0
00000C26 5380 subq.l D0, 1
00000C28 B086 cmp.l D0, D6
00000C2A 6606 bne +0x8 /* 00000C32 */
00000C2C 3D7C 00F4 FFFA move.w [A6 - 0x6], 0xF4
label00000C32:
00000C32 2006 move.l D0, D6
00000C34 C1FC 00C0 muls.w D0, 0xC0
00000C38 2207 move.l D1, D7
00000C3A C3FC 0018 muls.w D1, 0x18
00000C3E D240 add.w D1, D0
00000C40 41F4 1008 lea.l A0, [A4 + D1.w + 0x8]
00000C44 43EE FFF6 lea.l A1, [A6 - 0xA]
00000C48 20D9 move.l [A0]+, [A1]+
00000C4A 20D9 move.l [A0]+, [A1]+
00000C4C 486E FFF6 pea.l [A6 - 0xA]
00000C50 70FC moveq.l D0, 0xFFFFFFFC
00000C52 3F00 move.w -[A7], D0
00000C54 3F00 move.w -[A7], D0
00000C56 A8A9 syscall InsetRect
00000C58 2006 move.l D0, D6
00000C5A C1FC 00C0 muls.w D0, 0xC0
00000C5E 2207 move.l D1, D7
00000C60 C3FC 0018 muls.w D1, 0x18
00000C64 D240 add.w D1, D0
00000C66 41F4 1010 lea.l A0, [A4 + D1.w + 0x10]
00000C6A 43EE FFF6 lea.l A1, [A6 - 0xA]
00000C6E 20D9 move.l [A0]+, [A1]+
00000C70 20D9 move.l [A0]+, [A1]+
00000C72 486E FFF6 pea.l [A6 - 0xA]
00000C76 7004 moveq.l D0, 0x04
00000C78 3F00 move.w -[A7], D0
00000C7A 3F00 move.w -[A7], D0
00000C7C A8A9 syscall InsetRect
00000C7E 302D F8E2 move.w D0, [A5 - 0x71E]
00000C82 48C0 ext.l D0
00000C84 2F00 move.l -[A7], D0
00000C86 4EAD 0062 jsr [A5 + 0x62 /* export_8 */]
00000C8A 2206 move.l D1, D6
00000C8C C3FC 00C0 muls.w D1, 0xC0
00000C90 2407 move.l D2, D7
00000C92 C5FC 0018 muls.w D2, 0x18
00000C96 D441 add.w D2, D1
00000C98 3980 2006 move.w [A4 + D2.w + 0x6], D0
00000C9C 7A19 moveq.l D5, 0x19
00000C9E 9A6D FA3E sub.w D5, [A5 - 0x5C2]
00000CA2 7006 moveq.l D0, 0x06
00000CA4 B06D FA3E cmp.w D0, [A5 - 0x5C2]
00000CA8 588F addq.l A7, 4
00000CAA 6F02 ble +0x4 /* 00000CAE */
00000CAC 5D45 subq.w D5, 6
label00000CAE:
00000CAE 2006 move.l D0, D6
00000CB0 C1FC 00C0 muls.w D0, 0xC0
00000CB4 2207 move.l D1, D7
00000CB6 C3FC 0018 muls.w D1, 0x18
00000CBA D240 add.w D1, D0
00000CBC 3985 1000 move.w [A4 + D1.w], D5
00000CC0 2006 move.l D0, D6
00000CC2 C1FC 00C0 muls.w D0, 0xC0
00000CC6 2207 move.l D1, D7
00000CC8 C3FC 0018 muls.w D1, 0x18
00000CCC D240 add.w D1, D0
00000CCE 4274 1002 clr.w [A4 + D1.w + 0x2]
00000CD2 2007 move.l D0, D7
00000CD4 5287 addq.l D7, 1
label00000CD6:
00000CD6 302D FD3E move.w D0, [A5 - 0x2C2]
00000CDA 48C0 ext.l D0
00000CDC B087 cmp.l D0, D7
00000CDE 6E00 FF1E bgt -0xE0 /* 00000BFE */
00000CE2 2006 move.l D0, D6
00000CE4 5286 addq.l D6, 1
label00000CE6:
00000CE6 302D FD40 move.w D0, [A5 - 0x2C0]
00000CEA 48C0 ext.l D0
00000CEC B086 cmp.l D0, D6
00000CEE 6E00 FED6 bgt -0x128 /* 00000BC6 */
00000CF2 4A2D FA16 tst.b [A5 - 0x5EA]
00000CF6 6708 beq +0xA /* 00000D00 */
00000CF8 1B7C 0001 FA14 move.b [A5 - 0x5EC], 0x1
00000CFE 6004 bra +0x6 /* 00000D04 */
label00000D00:
00000D00 422D FA14 clr.b [A5 - 0x5EC]
label00000D04:
00000D04 7017 moveq.l D0, 0x17
00000D06 906D FA3E sub.w D0, [A5 - 0x5C2]
00000D0A 3B40 F8E0 move.w [A5 - 0x720], D0
00000D0E 7005 moveq.l D0, 0x05
00000D10 B06D FA3E cmp.w D0, [A5 - 0x5C2]
00000D14 6F04 ble +0x6 /* 00000D1A */
00000D16 576D F8E0 subq.w [A5 - 0x720], 3
label00000D1A:
00000D1A 3B7C 0004 F8E0 move.w [A5 - 0x720], 0x4
00000D20 426D F8DE clr.w [A5 - 0x722]
00000D24 426D F50C clr.w [A5 - 0xAF4]
00000D28 422D FD4C clr.b [A5 - 0x2B4]
00000D2C 586D FD62 addq.w [A5 - 0x29E], 4
00000D30 3B6D FD62 FD4A move.w [A5 - 0x2B6], [A5 - 0x29E]
00000D36 1B7C 0001 FA1E move.b [A5 - 0x5E2], 0x1
00000D3C 4A6D FA3E tst.w [A5 - 0x5C2]
00000D40 6606 bne +0x8 /* 00000D48 */
00000D42 397C 0005 00D8 move.w [A4 + 0xD8], 0x5
label00000D48:
00000D48 4CEE 18F8 FFD6 movem.l D3,D4,D5,D6,D7,A3,A4, [A6 - 0x2A]
00000D4E 4E5E unlink A6
00000D50 4E75 rts
fn00000D52:
00000D52 4E56 0000 link A6, 0
00000D56 48E7 1100 movem.l -[A7], D3,D7
00000D5A 558F subq.l A7, 2
00000D5C 3F3C 2238 move.w -[A7], 0x2238 /* '\"8' */
00000D60 7000 moveq.l D0, 0x00
00000D62 2F00 move.l -[A7], D0
00000D64 A988 syscall CautionAlert
00000D66 7002 moveq.l D0, 0x02
00000D68 B05F cmp.w D0, [A7]+
00000D6A 662A bne +0x2C /* 00000D96 */
00000D6C 7E00 moveq.l D7, 0x00
00000D6E 7614 moveq.l D3, 0x14
label00000D70:
00000D70 2007 move.l D0, D7
00000D72 EB80 asl D0, 5
00000D74 41ED FA42 lea.l A0, [A5 - 0x5BE]
00000D78 4230 0800 clr.b [A0 + D0]
00000D7C 2007 move.l D0, D7
00000D7E E580 asl D0, 2
00000D80 41ED FCC2 lea.l A0, [A5 - 0x33E]
00000D84 7200 moveq.l D1, 0x00
00000D86 2181 0800 move.l [A0 + D0], D1
00000D8A 2007 move.l D0, D7
00000D8C 5287 addq.l D7, 1
00000D8E B687 cmp.l D3, D7
00000D90 6EDE bgt -0x20 /* 00000D70 */
00000D92 4EBA FAFE jsr [PC - 0x502 /* 00000892 */]
label00000D96:
00000D96 4CEE 0088 FFF8 movem.l D3,D7, [A6 - 0x8]
00000D9C 4E5E unlink A6
00000D9E 4E75 rts
fn00000DA0:
00000DA0 4E56 FFFC link A6, -0x0004
00000DA4 48E7 0318 movem.l -[A7], D6,D7,A3,A4
00000DA8 7E01 moveq.l D7, 0x01
00000DAA 598F subq.l A7, 4
00000DAC AA32 syscall GetGDevice
00000DAE 2D5F FFFC move.l [A6 - 0x4], [A7]+
00000DB2 598F subq.l A7, 4
00000DB4 AA29 syscall GetDeviceList
00000DB6 285F movea.l A4, [A7]+
00000DB8 605C bra +0x5E /* 00000E16 */
label00000DBA:
00000DBA 2F0C move.l -[A7], A4
00000DBC AA31 syscall SetGDevice
00000DBE 558F subq.l A7, 2
00000DC0 2F0C move.l -[A7], A4
00000DC2 700D moveq.l D0, 0x0D
00000DC4 3F00 move.w -[A7], D0
00000DC6 AA2C syscall TestDeviceAttribute
00000DC8 4A1F tst.b [A7]+
00000DCA 673C beq +0x3E /* 00000E08 */
00000DCC 558F subq.l A7, 2
00000DCE 2F0C move.l -[A7], A4
00000DD0 700F moveq.l D0, 0x0F
00000DD2 3F00 move.w -[A7], D0
00000DD4 AA2C syscall TestDeviceAttribute
00000DD6 4A1F tst.b [A7]+
00000DD8 672E beq +0x30 /* 00000E08 */
00000DDA 558F subq.l A7, 2
00000DDC 2F0C move.l -[A7], A4
00000DDE 700B moveq.l D0, 0x0B
00000DE0 3F00 move.w -[A7], D0
00000DE2 AA2C syscall TestDeviceAttribute
00000DE4 4A1F tst.b [A7]+
00000DE6 6720 beq +0x22 /* 00000E08 */
00000DE8 2054 movea.l A0, [A4]
00000DEA 2668 0016 movea.l A3, [A0 + 0x16]
00000DEE 2053 movea.l A0, [A3]
00000DF0 3C28 0020 move.w D6, [A0 + 0x20]
00000DF4 0C46 0008 cmpi.w D6, 0x8
00000DF8 6C06 bge +0x8 /* 00000E00 */
00000DFA 422D FA24 clr.b [A5 - 0x5DC]
00000DFE 6006 bra +0x8 /* 00000E06 */
label00000E00:
00000E00 1B7C 0001 FA24 move.b [A5 - 0x5DC], 0x1
label00000E06:
00000E06 4207 clr.b D7
label00000E08:
00000E08 598F subq.l A7, 4
00000E0A 2F0C move.l -[A7], A4
00000E0C AA2B syscall GetNextDevice
00000E0E 285F movea.l A4, [A7]+
00000E10 200C move.l D0, A4
00000E12 6602 bne +0x4 /* 00000E16 */
00000E14 4207 clr.b D7
label00000E16:
00000E16 4A07 tst.b D7
00000E18 66A0 bne -0x5E /* 00000DBA */
00000E1A 2F2E FFFC move.l -[A7], [A6 - 0x4]
00000E1E AA31 syscall SetGDevice
00000E20 4CEE 18C0 FFEC movem.l D6,D7,A3,A4, [A6 - 0x14]
00000E26 4E5E unlink A6
00000E28 4E75 rts
export_4:
00000E2A 4E56 FFF4 link A6, -0x000C
00000E2E 48E7 1108 movem.l -[A7], D3,D7,A4
00000E32 3D7C 0200 FFFE move.w [A6 - 0x2], 0x200
00000E38 3D7C 00F8 FFFC move.w [A6 - 0x4], 0xF8
00000E3E 42AE FFF8 clr.l [A6 - 0x8]
00000E42 4A2D FA22 tst.b [A5 - 0x5DE]
00000E46 6724 beq +0x26 /* 00000E6C */
00000E48 598F subq.l A7, 4
00000E4A 2F3C 736E 6420 move.l -[A7], 0x736E6420 /* 'snd ' */
00000E50 3F3C 0259 move.w -[A7], 0x259
00000E54 A9A0 syscall GetResource
00000E56 285F movea.l A4, [A7]+
00000E58 558F subq.l A7, 2
00000E5A 7000 moveq.l D0, 0x00
00000E5C 2F00 move.l -[A7], D0
00000E5E 2F0C move.l -[A7], A4
00000E60 7200 moveq.l D1, 0x00
00000E62 1F01 move.b -[A7], D1
00000E64 A805 syscall SndPlay
00000E66 2F0C move.l -[A7], A4
00000E68 A9A3 syscall ReleaseResource
00000E6A 548F addq.l A7, 2
label00000E6C:
00000E6C 7E00 moveq.l D7, 0x00
label00000E6E:
00000E6E 486E FFF8 pea.l [A6 - 0x8]
00000E72 A8A4 syscall InvertRect
00000E74 307C 000A movea.w A0, 0xA /* '\n' */
00000E78 43EE FFF4 lea.l A1, [A6 - 0xC]
00000E7C A03B syscall Delay
00000E7E 2280 move.l [A1], D0
00000E80 2007 move.l D0, D7
00000E82 5287 addq.l D7, 1
00000E84 7004 moveq.l D0, 0x04
00000E86 B087 cmp.l D0, D7
00000E88 6EE4 bgt -0x1A /* 00000E6E */
00000E8A 302D FA3E move.w D0, [A5 - 0x5C2]
00000E8E 526D FA3E addq.w [A5 - 0x5C2], 1
00000E92 206D FA0A movea.l A0, [A5 - 0x5F6]
00000E96 4868 0010 pea.l [A0 + 0x10]
00000E9A A928 syscall InvalRect
00000E9C 303C 012C move.w D0, 0x12C
00000EA0 906D F8DE sub.w D0, [A5 - 0x722]
00000EA4 3B40 F8DE move.w [A5 - 0x722], D0
00000EA8 48C0 ext.l D0
00000EAA 81FC 0007 divs.w D0, 0x7
00000EAE 3B40 F8DE move.w [A5 - 0x722], D0
00000EB2 302D FD4A move.w D0, [A5 - 0x2B6]
00000EB6 906D FD62 sub.w D0, [A5 - 0x29E]
00000EBA 3B40 FD4A move.w [A5 - 0x2B6], D0
00000EBE 302D FA3E move.w D0, [A5 - 0x5C2]
00000EC2 48C0 ext.l D0
00000EC4 5280 addq.l D0, 1
00000EC6 7202 moveq.l D1, 0x02
00000EC8 4EBA 0ACE jsr [PC + 0xACE /* 00001998 */]
00000ECC 2E00 move.l D7, D0
00000ECE 6E02 bgt +0x4 /* 00000ED2 */
00000ED0 7E01 moveq.l D7, 0x01
label00000ED2:
00000ED2 302D F8DE move.w D0, [A5 - 0x722]
00000ED6 48C0 ext.l D0
00000ED8 D080 add.l D0, D0
00000EDA 2207 move.l D1, D7
00000EDC 4EBA 0A92 jsr [PC + 0xA92 /* 00001970 */]
00000EE0 2D40 FFF4 move.l [A6 - 0xC], D0
00000EE4 322D FD4A move.w D1, [A5 - 0x2B6]
00000EE8 48C1 ext.l D1
00000EEA E589 lsl D1, 2
00000EEC 2001 move.l D0, D1
00000EEE E589 lsl D1, 2
00000EF0 D280 add.l D1, D0
00000EF2 202E FFF4 move.l D0, [A6 - 0xC]
00000EF6 9081 sub.l D0, D1
00000EF8 2D40 FFF4 move.l [A6 - 0xC], D0
00000EFC 4A2D FA14 tst.b [A5 - 0x5EC]
00000F00 6714 beq +0x16 /* 00000F16 */
00000F02 4AAE FFF4 tst.l [A6 - 0xC]
00000F06 6F0E ble +0x10 /* 00000F16 */
00000F08 202E FFF4 move.l D0, [A6 - 0xC]
00000F0C 7202 moveq.l D1, 0x02
00000F0E 4EBA 0A88 jsr [PC + 0xA88 /* 00001998 */]
00000F12 2D40 FFF4 move.l [A6 - 0xC], D0
label00000F16:
00000F16 202E FFF4 move.l D0, [A6 - 0xC]
00000F1A D1AD FD12 add.l [A5 - 0x2EE], D0
00000F1E 4EBA FB4E jsr [PC - 0x4B2 /* 00000A6E */]
00000F22 4CEE 1088 FFE8 movem.l D3,D7,A4, [A6 - 0x18]
00000F28 4E5E unlink A6
00000F2A 4E75 rts
fn00000F2C:
00000F2C 4E56 0000 link A6, 0
00000F30 48E7 0018 movem.l -[A7], A3,A4
00000F34 47ED F940 lea.l A3, [A5 - 0x6C0]
00000F38 598F subq.l A7, 4
00000F3A 2F3C 5041 5423 move.l -[A7], 0x50415423 /* 'PAT#' */
00000F40 3F3C 0080 move.w -[A7], 0x80
00000F44 A9A0 syscall GetResource
00000F46 2857 movea.l A4, [A7]
00000F48 A992 syscall DetachResource
00000F4A 204C movea.l A0, A4
00000F4C A029 syscall HLock
00000F4E 2B54 FA3A move.l [A5 - 0x5C6], [A4]
00000F52 54AD FA3A addq.l [A5 - 0x5C6], 2
00000F56 598F subq.l A7, 4
00000F58 2F3C 736E 6420 move.l -[A7], 0x736E6420 /* 'snd ' */
00000F5E 3F3C 025A move.w -[A7], 0x25A
00000F62 A9A0 syscall GetResource
00000F64 2B57 FD56 move.l [A5 - 0x2AA], [A7]
00000F68 A992 syscall DetachResource
00000F6A 598F subq.l A7, 4
00000F6C 2F3C 736E 6420 move.l -[A7], 0x736E6420 /* 'snd ' */
00000F72 3F3C 025B move.w -[A7], 0x25B
00000F76 A9A0 syscall GetResource
00000F78 2B57 FD5A move.l [A5 - 0x2A6], [A7]
00000F7C A992 syscall DetachResource
00000F7E 598F subq.l A7, 4
00000F80 2F3C 736E 6420 move.l -[A7], 0x736E6420 /* 'snd ' */
00000F86 3F3C 4DB3 move.w -[A7], 0x4DB3
00000F8A A9A0 syscall GetResource
00000F8C 2B57 FD46 move.l [A5 - 0x2BA], [A7]
00000F90 A992 syscall DetachResource
00000F92 598F subq.l A7, 4
00000F94 2F3C 736E 6420 move.l -[A7], 0x736E6420 /* 'snd ' */
00000F9A 3F3C 5D45 move.w -[A7], 0x5D45 /* ']E' */
00000F9E A9A0 syscall GetResource
00000FA0 2B57 FD42 move.l [A5 - 0x2BE], [A7]
00000FA4 A992 syscall DetachResource
00000FA6 598F subq.l A7, 4
00000FA8 2F3C 736E 6420 move.l -[A7], 0x736E6420 /* 'snd ' */
00000FAE 3F3C 16DA move.w -[A7], 0x16DA
00000FB2 A9A0 syscall GetResource
00000FB4 2B57 FD52 move.l [A5 - 0x2AE], [A7]
00000FB8 A992 syscall DetachResource
00000FBA 598F subq.l A7, 4
00000FBC 2F3C 736E 6420 move.l -[A7], 0x736E6420 /* 'snd ' */
00000FC2 3F3C 4165 move.w -[A7], 0x4165 /* 'Ae' */
00000FC6 A9A0 syscall GetResource
00000FC8 2B57 FD4E move.l [A5 - 0x2B2], [A7]
00000FCC A992 syscall DetachResource
00000FCE 598F subq.l A7, 4
00000FD0 2F3C 6D43 4C52 move.l -[A7], 0x6D434C52 /* 'mCLR' */
00000FD6 3F3C 21B5 move.w -[A7], 0x21B5
00000FDA A9A0 syscall GetResource
00000FDC 285F movea.l A4, [A7]+
00000FDE 204C movea.l A0, A4
00000FE0 A029 syscall HLock
00000FE2 2054 movea.l A0, [A4]
00000FE4 224B movea.l A1, A3
00000FE6 203C 0000 00B4 move.l D0, 0xB4
00000FEC A02E syscall BlockMove/BlockMoveData
00000FEE 204C movea.l A0, A4
00000FF0 A02A syscall HUnlock
00000FF2 2F0C move.l -[A7], A4
00000FF4 A9A3 syscall ReleaseResource
00000FF6 4CEE 1800 FFF8 movem.l A3,A4, [A6 - 0x8]
00000FFC 4E5E unlink A6
00000FFE 4E75 rts
fn00001000:
00001000 4E56 0000 link A6, 0
00001004 48E7 1100 movem.l -[A7], D3,D7
00001008 598F subq.l A7, 4
0000100A 3F3C 0094 move.w -[A7], 0x94
0000100E A9C0 syscall GetNewMBar
00001010 2B57 F9F4 move.l [A5 - 0x60C], [A7]
00001014 A93C syscall SetMenuBar
00001016 598F subq.l A7, 4
00001018 3F3C 0080 move.w -[A7], 0x80
0000101C A949 syscall GetMenuHandle
0000101E 2B5F FD9C move.l [A5 - 0x264], [A7]+
00001022 598F subq.l A7, 4
00001024 3F3C 0081 move.w -[A7], 0x81
00001028 A949 syscall GetMenuHandle
0000102A 2B5F FD98 move.l [A5 - 0x268], [A7]+
0000102E 598F subq.l A7, 4
00001030 3F3C 0082 move.w -[A7], 0x82
00001034 A949 syscall GetMenuHandle
00001036 2B5F FD94 move.l [A5 - 0x26C], [A7]+
0000103A 598F subq.l A7, 4
0000103C 3F3C 0083 move.w -[A7], 0x83
00001040 A949 syscall GetMenuHandle
00001042 2B5F FD90 move.l [A5 - 0x270], [A7]+
00001046 2F2D FD98 move.l -[A7], [A5 - 0x268]
0000104A 7003 moveq.l D0, 0x03
0000104C 3F00 move.w -[A7], D0
0000104E A939 syscall EnableItem
00001050 7E01 moveq.l D7, 0x01
label00001052:
00001052 2F2D FD90 move.l -[A7], [A5 - 0x270]
00001056 3F07 move.w -[A7], D7
00001058 A939 syscall EnableItem
0000105A 2007 move.l D0, D7
0000105C 5287 addq.l D7, 1
0000105E 7009 moveq.l D0, 0x09
00001060 B087 cmp.l D0, D7
00001062 6EEE bgt -0x10 /* 00001052 */
00001064 2F2D FD90 move.l -[A7], [A5 - 0x270]
00001068 7002 moveq.l D0, 0x02
0000106A 3F00 move.w -[A7], D0
0000106C A93A syscall DisableItem
0000106E 2F2D FD90 move.l -[A7], [A5 - 0x270]
00001072 7008 moveq.l D0, 0x08
00001074 3F00 move.w -[A7], D0
00001076 A93A syscall DisableItem
00001078 2F2D FD9C move.l -[A7], [A5 - 0x264]
0000107C 7002 moveq.l D0, 0x02
0000107E 3F00 move.w -[A7], D0
00001080 A939 syscall EnableItem
00001082 1B7C 0001 FA22 move.b [A5 - 0x5DE], 0x1
00001088 2F2D FD90 move.l -[A7], [A5 - 0x270]
0000108C 7006 moveq.l D0, 0x06
0000108E 3F00 move.w -[A7], D0
00001090 7201 moveq.l D1, 0x01
00001092 1F01 move.b -[A7], D1
00001094 A945 syscall CheckItem
00001096 A937 syscall DrawMenuBar
00001098 2F2D FD9C move.l -[A7], [A5 - 0x264]
0000109C 2F3C 4452 5652 move.l -[A7], 0x44525652 /* 'DRVR' */
000010A2 A94D syscall AppendResMenu/AddResMenu
000010A4 4CEE 0088 FFF8 movem.l D3,D7, [A6 - 0x8]
000010AA 4E5E unlink A6
000010AC 4E75 rts
fn000010AE:
000010AE 4E56 0000 link A6, 0
000010B2 48E7 0F08 movem.l -[A7], D4,D5,D6,D7,A4
000010B6 2A2E 0008 move.l D5, [A6 + 0x8]
000010BA 4206 clr.b D6
000010BC 558F subq.l A7, 2
000010BE 2F05 move.l -[A7], D5
000010C0 A86B syscall LoWord
000010C2 301F move.w D0, [A7]+
000010C4 48C0 ext.l D0
000010C6 2E00 move.l D7, D0
000010C8 558F subq.l A7, 2
000010CA 2F05 move.l -[A7], D5
000010CC A86A syscall HiWord
000010CE 301F move.w D0, [A7]+
000010D0 48C0 ext.l D0
000010D2 2800 move.l D4, D0
000010D4 7000 moveq.l D0, 0x00
000010D6 3F00 move.w -[A7], D0
000010D8 A938 syscall HiliteMenu
000010DA 2004 move.l D0, D4
000010DC 0480 0000 0080 subi.l D0, 0x80
000010E2 6B00 01A0 bmi +0x1A2 /* 00001284 */
000010E6 0C80 0000 0003 cmpi.l D0, 0x3
000010EC 6E00 0196 bgt +0x198 /* 00001284 */
000010F0 D080 add.l D0, D0
000010F2 303B 0806 move.w D0, [PC + D0 + 0x6]
000010F6 4EFB 0000 jmp [PC + D0.w]
000010FA 000A 006E ori.b A2, 0x6E /* 'n' */
000010FE 0080 0086 7001 ori.l D0, 0x867001
00001104 B087 cmp.l D0, D7
00001106 663E bne +0x40 /* 00001146 */
00001108 598F subq.l A7, 4
0000110A 2F3C 736E 6420 move.l -[A7], 0x736E6420 /* 'snd ' */
00001110 3F3C 4263 move.w -[A7], 0x4263 /* 'Bc' */
00001114 A9A0 syscall GetResource
00001116 285F movea.l A4, [A7]+
00001118 4A2D FA22 tst.b [A5 - 0x5DE]
0000111C 6710 beq +0x12 /* 0000112E */
0000111E 558F subq.l A7, 2
00001120 7000 moveq.l D0, 0x00
00001122 2F00 move.l -[A7], D0
00001124 2F0C move.l -[A7], A4
00001126 7200 moveq.l D1, 0x00
00001128 1F01 move.b -[A7], D1
0000112A A805 syscall SndPlay
0000112C 548F addq.l A7, 2
label0000112E:
0000112E 2F0C move.l -[A7], A4
00001130 A9A3 syscall ReleaseResource
00001132 558F subq.l A7, 2
00001134 3F3C 3E7F move.w -[A7], 0x3E7F
00001138 7000 moveq.l D0, 0x00
0000113A 2F00 move.l -[A7], D0
0000113C A985 syscall Alert
0000113E 7C01 moveq.l D6, 0x01
00001140 548F addq.l A7, 2
00001142 6000 0140 bra +0x142 /* 00001284 */
label00001146:
00001146 7002 moveq.l D0, 0x02
00001148 B087 cmp.l D0, D7
0000114A 6608 bne +0xA /* 00001154 */
0000114C 4EBA 0170 jsr [PC + 0x170 /* 000012BE */]
00001150 6000 0132 bra +0x134 /* 00001284 */
label00001154:
00001154 2F07 move.l -[A7], D7
00001156 2F2D FD9C move.l -[A7], [A5 - 0x264]
0000115A 4EBA 0134 jsr [PC + 0x134 /* 00001290 */]
0000115E 7C01 moveq.l D6, 0x01
00001160 508F addq.l A7, 8
00001162 6000 0120 bra +0x122 /* 00001284 */
00001166 7001 moveq.l D0, 0x01
00001168 B087 cmp.l D0, D7
0000116A 6600 0118 bne +0x11A /* 00001284 */
0000116E 1B7C 0001 F9F8 move.b [A5 - 0x608], 0x1
00001174 6000 010E bra +0x110 /* 00001284 */
00001178 7C01 moveq.l D6, 0x01
0000117A 6000 0108 bra +0x10A /* 00001284 */
0000117E 2007 move.l D0, D7
00001180 5380 subq.l D0, 1
00001182 6B00 0100 bmi +0x102 /* 00001284 */
00001186 0C80 0000 0007 cmpi.l D0, 0x7
0000118C 6E00 00F6 bgt +0xF8 /* 00001284 */
00001190 D080 add.l D0, D0
00001192 303B 0806 move.w D0, [PC + D0 + 0x6]
00001196 4EFB 0000 jmp [PC + D0.w]
0000119A 0012 00EC ori.b [A2], 0xEC
0000119E 0042 004A ori.w D2, 0x4A /* 'J' */
000011A2 00EC .incomplete
000011A4 0052 0074 ori.w [A2], 0x74 /* 't' */
000011A8 00A2 4A2D FA20 ori.l -[A2], 0x4A2DFA20
000011AE 6716 beq +0x18 /* 000011C6 */
000011B0 7000 moveq.l D0, 0x00
000011B2 2F00 move.l -[A7], D0
000011B4 4EBA 0234 jsr [PC + 0x234 /* 000013EA */]
000011B8 4EBA F428 jsr [PC - 0xBD8 /* 000005E2 */]
000011BC 422D FA20 clr.b [A5 - 0x5E0]
000011C0 588F addq.l A7, 4
000011C2 6000 00C0 bra +0xC2 /* 00001284 */
label000011C6:
000011C6 1B7C 0001 FA20 move.b [A5 - 0x5E0], 0x1
000011CC 7001 moveq.l D0, 0x01
000011CE 2F00 move.l -[A7], D0
000011D0 4EBA 0218 jsr [PC + 0x218 /* 000013EA */]
000011D4 588F addq.l A7, 4
000011D6 6000 00AC bra +0xAE /* 00001284 */
000011DA 4EBA F730 jsr [PC - 0x8D0 /* 0000090C */]
000011DE 6000 00A4 bra +0xA6 /* 00001284 */
000011E2 4EBA FB6E jsr [PC - 0x492 /* 00000D52 */]
000011E6 6000 009C bra +0x9E /* 00001284 */
000011EA 4A2D FA22 tst.b [A5 - 0x5DE]
000011EE 6706 beq +0x8 /* 000011F6 */
000011F0 422D FA22 clr.b [A5 - 0x5DE]
000011F4 6006 bra +0x8 /* 000011FC */
label000011F6:
000011F6 1B7C 0001 FA22 move.b [A5 - 0x5DE], 0x1
label000011FC:
000011FC 2F2D FD90 move.l -[A7], [A5 - 0x270]
00001200 7006 moveq.l D0, 0x06
00001202 3F00 move.w -[A7], D0
00001204 1F2D FA22 move.b -[A7], [A5 - 0x5DE]
00001208 A945 syscall CheckItem
0000120A 6078 bra +0x7A /* 00001284 */
0000120C 4A2D FA16 tst.b [A5 - 0x5EA]
00001210 6706 beq +0x8 /* 00001218 */
00001212 422D FA16 clr.b [A5 - 0x5EA]
00001216 600C bra +0xE /* 00001224 */
label00001218:
00001218 1B7C 0001 FA16 move.b [A5 - 0x5EA], 0x1
0000121E 1B7C 0001 FA14 move.b [A5 - 0x5EC], 0x1
label00001224:
00001224 2F2D FD90 move.l -[A7], [A5 - 0x270]
00001228 7007 moveq.l D0, 0x07
0000122A 3F00 move.w -[A7], D0
0000122C 1F2D FA16 move.b -[A7], [A5 - 0x5EA]
00001230 A945 syscall CheckItem
00001232 486D FD26 pea.l [A5 - 0x2DA]
00001236 A928 syscall InvalRect
00001238 604A bra +0x4C /* 00001284 */
0000123A 4A2D FA12 tst.b [A5 - 0x5EE]
0000123E 6726 beq +0x28 /* 00001266 */
00001240 422D FA12 clr.b [A5 - 0x5EE]
00001244 70FF moveq.l D0, 0xFFFFFFFF
00001246 3F00 move.w -[A7], D0
00001248 7200 moveq.l D1, 0x00
0000124A 3F01 move.w -[A7], D1
0000124C 201F move.l D0, [A7]+
0000124E A032 syscall FlushEvents
00001250 206D FA0A movea.l A0, [A5 - 0x5F6]
00001254 4868 0010 pea.l [A0 + 0x10]
00001258 A928 syscall InvalRect
0000125A 206D FA0A movea.l A0, [A5 - 0x5F6]
0000125E 4868 0010 pea.l [A0 + 0x10]
00001262 A8A3 syscall EraseRect
00001264 6010 bra +0x12 /* 00001276 */
label00001266:
00001266 1B7C 0001 FA12 move.b [A5 - 0x5EE], 0x1
0000126C 206D FA0A movea.l A0, [A5 - 0x5F6]
00001270 4868 0010 pea.l [A0 + 0x10]
00001274 A928 syscall InvalRect
label00001276:
00001276 2F2D FD90 move.l -[A7], [A5 - 0x270]
0000127A 7008 moveq.l D0, 0x08
0000127C 3F00 move.w -[A7], D0
0000127E 1F2D FA12 move.b -[A7], [A5 - 0x5EE]
00001282 A945 syscall CheckItem
label00001284:
00001284 1006 move.b D0, D6
00001286 4CEE 10F0 FFEC movem.l D4,D5,D6,D7,A4, [A6 - 0x14]
0000128C 4E5E unlink A6
0000128E 4E75 rts
fn00001290:
00001290 4E56 FF00 link A6, -0x0100
00001294 48E7 0108 movem.l -[A7], D7,A4
00001298 49EE FF00 lea.l A4, [A6 - 0x100]
0000129C 2F2E 0008 move.l -[A7], [A6 + 0x8]
000012A0 3F2E 000E move.w -[A7], [A6 + 0xE]
000012A4 2F0C move.l -[A7], A4
000012A6 A946 syscall GetMenuItemText/GetItem
000012A8 558F subq.l A7, 2
000012AA 2F0C move.l -[A7], A4
000012AC A9B6 syscall OpenDeskAcc
000012AE 301F move.w D0, [A7]+
000012B0 48C0 ext.l D0
000012B2 2E00 move.l D7, D0
000012B4 4CEE 1080 FEF8 movem.l D7,A4, [A6 - 0x108]
000012BA 4E5E unlink A6
000012BC 4E75 rts
fn000012BE:
000012BE 4E56 FCF0 link A6, -0x0310
000012C2 48E7 0118 movem.l -[A7], D7,A3,A4
000012C6 47EE FF00 lea.l A3, [A6 - 0x100]
000012CA 426E FCF0 clr.w [A6 - 0x310]
000012CE 4247 clr.w D7
000012D0 486E FD00 pea.l [A6 - 0x300]
000012D4 3F3C 03E9 move.w -[A7], 0x3E9
000012D8 7001 moveq.l D0, 0x01
000012DA 3F00 move.w -[A7], D0
000012DC 4EBA 085A jsr [PC + 0x85A /* 00001B38 */]
000012E0 486E FE00 pea.l [A6 - 0x200]
000012E4 3F3C 03E9 move.w -[A7], 0x3E9
000012E8 7002 moveq.l D0, 0x02
000012EA 3F00 move.w -[A7], D0
000012EC 4EBA 084A jsr [PC + 0x84A /* 00001B38 */]
000012F0 2F0B move.l -[A7], A3
000012F2 3F3C 03E9 move.w -[A7], 0x3E9
000012F6 7003 moveq.l D0, 0x03
000012F8 3F00 move.w -[A7], D0
000012FA 4EBA 083C jsr [PC + 0x83C /* 00001B38 */]
000012FE 426D FD8E clr.w [A5 - 0x272]
00001302 598F subq.l A7, 4
00001304 3F3C 2310 move.w -[A7], 0x2310
00001308 7000 moveq.l D0, 0x00
0000130A 2F00 move.l -[A7], D0
0000130C 72FF moveq.l D1, 0xFFFFFFFF
0000130E 2F01 move.l -[A7], D1
00001310 A97C syscall GetNewDialog
00001312 2857 movea.l A4, [A7]
00001314 7004 moveq.l D0, 0x04
00001316 3F00 move.w -[A7], D0
00001318 486E FCF2 pea.l [A6 - 0x30E]
0000131C 486E FCF4 pea.l [A6 - 0x30C]
00001320 486D FDA0 pea.l [A5 - 0x260]
00001324 A98D syscall GetDialogItem/GetDItem
00001326 2F0C move.l -[A7], A4
00001328 7004 moveq.l D0, 0x04
0000132A 3F00 move.w -[A7], D0
0000132C 7200 moveq.l D1, 0x00
0000132E 3F01 move.w -[A7], D1
00001330 486D 004A pea.l [A5 + 0x4A /* export_5 */]
00001334 486D FDA0 pea.l [A5 - 0x260]
00001338 A98E syscall SetDialogItem/SetDItem
0000133A 2F0C move.l -[A7], A4
0000133C A915 syscall ShowWindow
0000133E 6000 0092 bra +0x94 /* 000013D2 */
label00001342:
00001342 7000 moveq.l D0, 0x00
00001344 2F00 move.l -[A7], D0
00001346 486E FCF0 pea.l [A6 - 0x310]
0000134A A991 syscall ModalDialog
0000134C 7005 moveq.l D0, 0x05
0000134E B06E FCF0 cmp.w D0, [A6 - 0x310]
00001352 660E bne +0x10 /* 00001362 */
00001354 558F subq.l A7, 2
00001356 3F3C 0081 move.w -[A7], 0x81
0000135A 7000 moveq.l D0, 0x00
0000135C 2F00 move.l -[A7], D0
0000135E A985 syscall Alert
00001360 548F addq.l A7, 2
label00001362:
00001362 7003 moveq.l D0, 0x03
00001364 B06E FCF0 cmp.w D0, [A6 - 0x310]
00001368 6668 bne +0x6A /* 000013D2 */
0000136A 302D FD8E move.w D0, [A5 - 0x272]
0000136E 526D FD8E addq.w [A5 - 0x272], 1
00001372 7003 moveq.l D0, 0x03
00001374 B06D FD8E cmp.w D0, [A5 - 0x272]
00001378 6624 bne +0x26 /* 0000139E */
0000137A 2F0C move.l -[A7], A4
0000137C 7003 moveq.l D0, 0x03
0000137E 3F00 move.w -[A7], D0
00001380 486E FCF2 pea.l [A6 - 0x30E]
00001384 486E FCF4 pea.l [A6 - 0x30C]
00001388 486E FCF8 pea.l [A6 - 0x308]
0000138C A98D syscall GetDialogItem/GetDItem
0000138E 2F2E FCF4 move.l -[A7], [A6 - 0x30C]
00001392 486D FD68 pea.l [A5 - 0x298]
00001396 A95F syscall SetControlTitle/SetCTitle
00001398 486E FCF8 pea.l [A6 - 0x308]
0000139C A928 syscall InvalRect
label0000139E:
0000139E 7003 moveq.l D0, 0x03
000013A0 B06D FD8E cmp.w D0, [A5 - 0x272]
000013A4 6C28 bge +0x2A /* 000013CE */
000013A6 426D FD8E clr.w [A5 - 0x272]
000013AA 2F0C move.l -[A7], A4
000013AC 7003 moveq.l D0, 0x03
000013AE 3F00 move.w -[A7], D0
000013B0 486E FCF2 pea.l [A6 - 0x30E]
000013B4 486E FCF4 pea.l [A6 - 0x30C]
000013B8 486E FCF8 pea.l [A6 - 0x308]
000013BC A98D syscall GetDialogItem/GetDItem
000013BE 2F2E FCF4 move.l -[A7], [A6 - 0x30C]
000013C2 486D FD70 pea.l [A5 - 0x290]
000013C6 A95F syscall SetControlTitle/SetCTitle
000013C8 486E FCF8 pea.l [A6 - 0x308]
000013CC A928 syscall InvalRect
label000013CE:
000013CE 2F0C move.l -[A7], A4
000013D0 A981 syscall DrawDialog
label000013D2:
000013D2 7001 moveq.l D0, 0x01
000013D4 B06E FCF0 cmp.w D0, [A6 - 0x310]
000013D8 6600 FF68 bne -0x96 /* 00001342 */
000013DC 2F0C move.l -[A7], A4
000013DE A983 syscall DisposeDialog
000013E0 4CEE 1880 FCE4 movem.l D7,A3,A4, [A6 - 0x31C]
000013E6 4E5E unlink A6
000013E8 4E75 rts
fn000013EA:
000013EA 4E56 0000 link A6, 0
000013EE 48E7 0018 movem.l -[A7], A3,A4
000013F2 47ED FD82 lea.l A3, [A5 - 0x27E]
000013F6 49ED FD76 lea.l A4, [A5 - 0x28A]
000013FA 4A2E 000B tst.b [A6 + 0xB]
000013FE 6740 beq +0x42 /* 00001440 */
00001400 2F2D FD90 move.l -[A7], [A5 - 0x270]
00001404 7001 moveq.l D0, 0x01
00001406 3F00 move.w -[A7], D0
00001408 2F0C move.l -[A7], A4
0000140A A947 syscall SetMenuItemText/SetItem
0000140C 2F2D FD90 move.l -[A7], [A5 - 0x270]
00001410 7003 moveq.l D0, 0x03
00001412 3F00 move.w -[A7], D0
00001414 A93A syscall DisableItem
00001416 2F2D FD90 move.l -[A7], [A5 - 0x270]
0000141A 7004 moveq.l D0, 0x04
0000141C 3F00 move.w -[A7], D0
0000141E A93A syscall DisableItem
00001420 2F2D FD90 move.l -[A7], [A5 - 0x270]
00001424 7008 moveq.l D0, 0x08
00001426 3F00 move.w -[A7], D0
00001428 A939 syscall EnableItem
0000142A 2F2D FD9C move.l -[A7], [A5 - 0x264]
0000142E 7002 moveq.l D0, 0x02
00001430 3F00 move.w -[A7], D0
00001432 A93A syscall DisableItem
00001434 2F2D FD9C move.l -[A7], [A5 - 0x264]
00001438 7001 moveq.l D0, 0x01
0000143A 3F00 move.w -[A7], D0
0000143C A93A syscall DisableItem
0000143E 6052 bra +0x54 /* 00001492 */
label00001440:
00001440 2F2D FD90 move.l -[A7], [A5 - 0x270]
00001444 7001 moveq.l D0, 0x01
00001446 3F00 move.w -[A7], D0
00001448 2F0B move.l -[A7], A3
0000144A A947 syscall SetMenuItemText/SetItem
0000144C 2F2D FD90 move.l -[A7], [A5 - 0x270]
00001450 7003 moveq.l D0, 0x03
00001452 3F00 move.w -[A7], D0
00001454 A939 syscall EnableItem
00001456 2F2D FD90 move.l -[A7], [A5 - 0x270]
0000145A 7004 moveq.l D0, 0x04
0000145C 3F00 move.w -[A7], D0
0000145E A939 syscall EnableItem
00001460 2F2D FD90 move.l -[A7], [A5 - 0x270]
00001464 7006 moveq.l D0, 0x06
00001466 3F00 move.w -[A7], D0
00001468 A939 syscall EnableItem
0000146A 2F2D FD90 move.l -[A7], [A5 - 0x270]
0000146E 7007 moveq.l D0, 0x07
00001470 3F00 move.w -[A7], D0
00001472 A939 syscall EnableItem
00001474 2F2D FD9C move.l -[A7], [A5 - 0x264]
00001478 7002 moveq.l D0, 0x02
0000147A 3F00 move.w -[A7], D0
0000147C A939 syscall EnableItem
0000147E 2F2D FD9C move.l -[A7], [A5 - 0x264]
00001482 7001 moveq.l D0, 0x01
00001484 3F00 move.w -[A7], D0
00001486 A939 syscall EnableItem
00001488 2F2D FD90 move.l -[A7], [A5 - 0x270]
0000148C 7008 moveq.l D0, 0x08
0000148E 3F00 move.w -[A7], D0
00001490 A93A syscall DisableItem
label00001492:
00001492 4CEE 1800 FFF8 movem.l A3,A4, [A6 - 0x8]
00001498 4E5E unlink A6
0000149A 4E75 rts
fn0000149C:
0000149C 4E56 0000 link A6, 0
000014A0 48E7 0300 movem.l -[A7], D6,D7
000014A4 1C2E 000F move.b D6, [A6 + 0xF]
000014A8 3E2E 000A move.w D7, [A6 + 0xA]
000014AC 7000 moveq.l D0, 0x00
000014AE 1006 move.b D0, D6
000014B0 0C40 0001 cmpi.w D0, 0x1
000014B4 6620 bne +0x22 /* 000014D6 */
000014B6 4A6D FD30 tst.w [A5 - 0x2D0]
000014BA 6F1A ble +0x1C /* 000014D6 */
000014BC 7004 moveq.l D0, 0x04
000014BE B06D FD30 cmp.w D0, [A5 - 0x2D0]
000014C2 6F12 ble +0x14 /* 000014D6 */
000014C4 303C 03FF move.w D0, 0x3FF
000014C8 C047 and.w D0, D7
000014CA 3E00 move.w D7, D0
000014CC 0C47 01FF cmpi.w D7, 0x1FF
000014D0 6F04 ble +0x6 /* 000014D6 */
000014D2 3E3C A89F move.w D7, 0xA89F
label000014D6:
000014D6 598F subq.l A7, 4
000014D8 3F07 move.w -[A7], D7
000014DA 1F06 move.b -[A7], D6
000014DC 4EBA 058A jsr [PC + 0x58A /* 00001A68 */]
000014E0 303C A89F move.w D0, 0xA89F
000014E4 A146 syscall GetTrapAddress, flags=1
000014E6 B1DF cmpa.l A0, [A7]+
000014E8 56C0 sne D0
000014EA 4400 neg.b D0
000014EC 4CEE 00C0 FFF8 movem.l D6,D7, [A6 - 0x8]
000014F2 4E5E unlink A6
000014F4 4E75 rts
export_5:
000014F6 4E56 FFFC link A6, -0x0004
000014FA 2F0C move.l -[A7], A4
000014FC 486E FFFC pea.l [A6 - 0x4]
00001500 A874 syscall GetPort
00001502 2F2E 000A move.l -[A7], [A6 + 0xA]
00001506 A873 syscall SetPort
00001508 598F subq.l A7, 4
0000150A 2F3C 5445 5854 move.l -[A7], 0x54455854 /* 'TEXT' */
00001510 302D FD8E move.w D0, [A5 - 0x272]
00001514 D07C 0080 add.w D0, 0x80
00001518 3F00 move.w -[A7], D0
0000151A A9A0 syscall GetResource
0000151C 285F movea.l A4, [A7]+
0000151E 204C movea.l A0, A4
00001520 A029 syscall HLock
00001522 2F14 move.l -[A7], [A4]
00001524 598F subq.l A7, 4
00001526 2F0C move.l -[A7], A4
00001528 4EBA 052A jsr [PC + 0x52A /* 00001A54 */]
0000152C 486D FDA0 pea.l [A5 - 0x260]
00001530 7000 moveq.l D0, 0x00
00001532 3F00 move.w -[A7], D0
00001534 A9CE syscall TETextBox/TextBox
00001536 204C movea.l A0, A4
00001538 A02A syscall HUnlock
0000153A 2F0C move.l -[A7], A4
0000153C A9A3 syscall ReleaseResource
0000153E 2F2E FFFC move.l -[A7], [A6 - 0x4]
00001542 A873 syscall SetPort
00001544 286E FFF8 movea.l A4, [A6 - 0x8]
00001548 4E5E unlink A6
0000154A 205F movea.l A0, [A7]+
0000154C 5C4F addq.w A7, 6
0000154E 4ED0 jmp [A0]
export_0:
00001550 2057 movea.l A0, [A7]
00001552 42A7 clr.l -[A7]
00001554 486D FDB0 pea.l [A5 - 0x250]
00001558 486D FDAC pea.l [A5 - 0x254]
0000155C 486D FDA8 pea.l [A5 - 0x258]
00001560 2F08 move.l -[A7], A0
00001562 4EBA 018A jsr [PC + 0x18A /* 000016EE */]
00001566 72FF moveq.l D1, 0xFFFFFFFF
00001568 B041 cmp.w D0, D1
0000156A 672E beq +0x30 /* 0000159A */
0000156C 588F addq.l A7, 4
0000156E 4FEF 0010 lea.l A7, [A7 + 0x10]
00001572 486D FFD0 pea.l [A5 - 0x30]
00001576 4EBA 04AE jsr [PC + 0x4AE /* 00001A26 */]
0000157A 584F addq.w A7, 4
0000157C 4A80 tst.l D0
0000157E 6624 bne +0x26 /* 000015A4 */
00001580 2F2D FDB0 move.l -[A7], [A5 - 0x250]
00001584 2F2D FDAC move.l -[A7], [A5 - 0x254]
00001588 2F2D FDA8 move.l -[A7], [A5 - 0x258]
0000158C 4EBA EA72 jsr [PC - 0x158E /* 00000000 */]
00001590 4FEF 000C lea.l A7, [A7 + 0xC]
00001594 2F00 move.l -[A7], D0
00001596 4EBA 034E jsr [PC + 0x34E /* 000018E6 */]
label0000159A:
0000159A 487A 000A pea.l [PC + 0xA /* 000015A6, value 0x1B446174, pstring "Data initialization failed!" */]
0000159E 303C FE15 move.w D0, 0xFE15
000015A2 A9C9 syscall SysError
label000015A4:
000015A4 4E75 rts
000015A6 1B44 6174 move.b [A5 + 0x6174], D4
000015AA 6120 bsr +0x22 /* 000015CC */
000015AC 696E bvs +0x70 /* 0000161C */
000015AE 6974 bvs +0x76 /* 00001624 */
000015B0 6961 bvs +0x63 /* 00001613 */
000015B2 6C69 bge +0x6B /* 0000161D */
000015B4 7A61 moveq.l D5, 0x61
000015B6 7469 moveq.l D2, 0x69
000015B8 6F6E ble +0x70 /* 00001628 */
000015BA 2066 movea.l A0, -[A6]
000015BC 6169 bsr +0x6B /* 00001627 */
000015BE 6C65 bge +0x67 /* 00001625 */
000015C0 6421 bcc +0x23 /* 000015E3 */
fn000015C2:
000015C2 4E56 FFFC link A6, -0x0004
000015C6 48E7 0318 movem.l -[A7], D6,D7,A3,A4
000015CA 4AAD FED6 tst.l [A5 - 0x12A]
// begin alternate branch 000015CC-000015DA
fn000015CC:
000015CC FED6 6600 .extension 0xED6 <<F/2-3/7>> // unimplemented
000015D0 0086 598F 2F3C ori.l D6, 0x598F2F3C
000015D6 434F chk.w D1, A7
000015D8 4445 neg.w D5
// end alternate branch 000015CC-000015DA
fn000015CC: // (misaligned)
000015CE 6600 0086 bne +0x88 /* 00001656 */
000015D2 598F subq.l A7, 4
000015D4 2F3C 434F 4445 move.l -[A7], 0x434F4445 /* 'CODE' */
000015DA 486D FE82 pea.l [A5 - 0x17E]
000015DE A820 syscall Get1NamedResource
000015E0 265F movea.l A3, [A7]+
000015E2 200B move.l D0, A3
000015E4 6770 beq +0x72 /* 00001656 */
000015E6 558F subq.l A7, 2
000015E8 A994 syscall CurResFile
000015EA 558F subq.l A7, 2
000015EC 2F0B move.l -[A7], A3
000015EE A9A4 syscall HomeResFile
000015F0 301F move.w D0, [A7]+
000015F2 B05F cmp.w D0, [A7]+
000015F4 6660 bne +0x62 /* 00001656 */
000015F6 41ED 0052 lea.l A0, [A5 + 0x52 /* export_6 */]
000015FA 226D FEF4 movea.l A1, [A5 - 0x10C]
000015FE 2348 000C move.l [A1 + 0xC], A0
00001602 2D4B FFFC move.l [A6 - 0x4], A3
00001606 204B movea.l A0, A3
00001608 A025 syscall GetHandleSize
0000160A 5980 subq.l D0, 4
0000160C 7204 moveq.l D1, 0x04
0000160E 4EBA 0388 jsr [PC + 0x388 /* 00001998 */]
00001612 2C00 move.l D6, D0
00001614 7000 moveq.l D0, 0x00
00001616 2840 movea.l A4, D0
00001618 602A bra +0x2C /* 00001644 */
label0000161A:
0000161A 2F0B move.l -[A7], A3
label0000161C:
0000161C A9A2 syscall LoadResource
0000161E 206E FFFC movea.l A0, [A6 - 0x4]
00001622 2050 movea.l A0, [A0]
label00001624:
00001624 202D FED6 move.l D0, [A5 - 0x12A]
label00001628:
00001628 E580 asl D0, 2
0000162A 3030 0804 move.w D0, [A0 + D0 + 0x4]
0000162E 48C0 ext.l D0
00001630 2E00 move.l D7, D0
00001632 6708 beq +0xA /* 0000163C */
00001634 200D move.l D0, A5
00001636 2840 movea.l A4, D0
00001638 D9C7 add.l A4, D7
0000163A 4E94 jsr [A4]
label0000163C:
0000163C 202D FED6 move.l D0, [A5 - 0x12A]
00001640 52AD FED6 addq.l [A5 - 0x12A], 1
label00001644:
00001644 BCAD FED6 cmp.l D6, [A5 - 0x12A]
00001648 6ED0 bgt -0x2E /* 0000161A */
0000164A 200C move.l D0, A4
0000164C 6704 beq +0x6 /* 00001652 */
0000164E 2F0C move.l -[A7], A4
00001650 A9F1 syscall UnloadSeg
label00001652:
00001652 2F0B move.l -[A7], A3
00001654 A9A3 syscall ReleaseResource
label00001656:
00001656 4CEE 18C0 FFEC movem.l D6,D7,A3,A4, [A6 - 0x14]
0000165C 4E5E unlink A6
0000165E 4E75 rts
00001660 8B5F or.w [A7]+, D5
00001662 5F43 subq.w D3, 7
00001664 706C moveq.l D0, 0x6C
00001666 7573 moveq.l D2, 0x73
00001668 496E 6974 chk.w D4, [A6 + 0x6974]
0000166C 0000 4E56 ori.b D0, 0x56 /* 'V' */
export_6: // at 0000166E (misaligned)
00001670 FFFC .invalid <<F/7/7>>
00001672 48E7 0118 movem.l -[A7], D7,A3,A4
00001676 4AAD FED6 tst.l [A5 - 0x12A]
0000167A 675C beq +0x5E /* 000016D8 */
0000167C 598F subq.l A7, 4
0000167E 2F3C 434F 4445 move.l -[A7], 0x434F4445 /* 'CODE' */
00001684 486D FEAC pea.l [A5 - 0x154]
00001688 A9A1 syscall GetNamedResource
0000168A 265F movea.l A3, [A7]+
0000168C 200B move.l D0, A3
0000168E 6748 beq +0x4A /* 000016D8 */
00001690 558F subq.l A7, 2
00001692 A994 syscall CurResFile
00001694 558F subq.l A7, 2
00001696 2F0B move.l -[A7], A3
00001698 A9A4 syscall HomeResFile
0000169A 301F move.w D0, [A7]+
0000169C B05F cmp.w D0, [A7]+
0000169E 6638 bne +0x3A /* 000016D8 */
000016A0 2D4B FFFC move.l [A6 - 0x4], A3
000016A4 6028 bra +0x2A /* 000016CE */
label000016A6:
000016A6 2F0B move.l -[A7], A3
000016A8 A9A2 syscall LoadResource
000016AA 53AD FED6 subq.l [A5 - 0x12A], 1
000016AE 206E FFFC movea.l A0, [A6 - 0x4]
000016B2 2050 movea.l A0, [A0]
000016B4 202D FED6 move.l D0, [A5 - 0x12A]
000016B8 E580 asl D0, 2
000016BA 3030 0806 move.w D0, [A0 + D0 + 0x6]
000016BE 48C0 ext.l D0
000016C0 2E00 move.l D7, D0
000016C2 200D move.l D0, A5
000016C4 2840 movea.l A4, D0
000016C6 D9C7 add.l A4, D7
000016C8 4A87 tst.l D7
000016CA 6702 beq +0x4 /* 000016CE */
000016CC 4E94 jsr [A4]
label000016CE:
000016CE 4AAD FED6 tst.l [A5 - 0x12A]
000016D2 6ED2 bgt -0x2C /* 000016A6 */
000016D4 2F0B move.l -[A7], A3
000016D6 A9A3 syscall ReleaseResource
label000016D8:
000016D8 4CEE 1880 FFF0 movem.l D7,A3,A4, [A6 - 0x10]
000016DE 4E5E unlink A6
000016E0 4E75 rts
000016E2 8964 or.w -[A4], D4
000016E4 746F moveq.l D2, 0x6F
000016E6 7273 moveq.l D1, 0x73
000016E8 5F5F subq.w [A7]+, 7
000016EA 4676 0000 not.w [A6 + D0.w]
fn000016EE:
000016EE 4E56 0000 link A6, 0
000016F2 48E7 1338 movem.l -[A7], D3,D6,D7,A2,A3,A4
000016F6 2C2E 0018 move.l D6, [A6 + 0x18]
000016FA 266E 000C movea.l A3, [A6 + 0xC]
000016FE 4EAD 007A jsr [A5 + 0x7A /* export_11 */]
00001702 4A80 tst.l D0
00001704 6706 beq +0x8 /* 0000170C */
00001706 70FF moveq.l D0, 0xFFFFFFFF
00001708 6000 01C8 bra +0x1CA /* 000018D2 */
label0000170C:
0000170C 206D FEF4 movea.l A0, [A5 - 0x10C]
00001710 20AE 0008 move.l [A0], [A6 + 0x8]
00001714 7001 moveq.l D0, 0x01
00001716 4AB8 0316 tst.l [0x00000316 /* HpChk/MacPgm */]
0000171A 672C beq +0x2E /* 00001748 */
0000171C 7201 moveq.l D1, 0x01
0000171E C2B8 0316 and.l D1, [0x00000316 /* HpChk/MacPgm */]
00001722 6624 bne +0x26 /* 00001748 */
00001724 2078 0316 movea.l A0, [0x00000316 /* HpChk/MacPgm */]
00001728 0C90 4D50 474D cmpi.l [A0], 0x4D50474D /* 'MPGM' */
0000172E 6618 bne +0x1A /* 00001748 */
00001730 2078 0316 movea.l A0, [0x00000316 /* HpChk/MacPgm */]
00001734 4AA8 0004 tst.l [A0 + 0x4]
00001738 670E beq +0x10 /* 00001748 */
0000173A 2078 0316 movea.l A0, [0x00000316 /* HpChk/MacPgm */]
0000173E 2068 0004 movea.l A0, [A0 + 0x4]
00001742 4A50 tst.w [A0]
00001744 6702 beq +0x4 /* 00001748 */
00001746 7000 moveq.l D0, 0x00
label00001748:
00001748 4880 ext.w D0
0000174A 48C0 ext.l D0
0000174C 2B40 FEDA move.l [A5 - 0x126], D0
00001750 6760 beq +0x62 /* 000017B2 */
00001752 41ED FFAE lea.l A0, [A5 - 0x52]
00001756 43F8 0910 lea.l A1, [0x00000910 /* CurApName */]
0000175A 7007 moveq.l D0, 0x07
label0000175C:
0000175C 20D9 move.l [A0]+, [A1]+
0000175E 51C8 FFFC dbf D0, -0x6 /* 0000175C */
00001762 30D9 move.w [A0]+, [A1]+
00001764 41ED FFAE lea.l A0, [A5 - 0x52]
00001768 226D FEE4 movea.l A1, [A5 - 0x11C]
0000176C 2288 move.l [A1], A0
0000176E 4A86 tst.l D6
00001770 660E bne +0x10 /* 00001780 */
00001772 598F subq.l A7, 4
00001774 206D FEE4 movea.l A0, [A5 - 0x11C]
00001778 2F10 move.l -[A7], [A0]
0000177A 4EBA 05C4 jsr [PC + 0x5C4 /* 00001D40 */]
0000177E 588F addq.l A7, 4
label00001780:
00001780 200B move.l D0, A3
00001782 6704 beq +0x6 /* 00001788 */
00001784 7001 moveq.l D0, 0x01
00001786 2680 move.l [A3], D0
label00001788:
00001788 4AAE 0010 tst.l [A6 + 0x10]
0000178C 6708 beq +0xA /* 00001796 */
0000178E 206E 0010 movea.l A0, [A6 + 0x10]
00001792 20AD FEE4 move.l [A0], [A5 - 0x11C]
label00001796:
00001796 4AAE 0014 tst.l [A6 + 0x14]
0000179A 6708 beq +0xA /* 000017A4 */
0000179C 206E 0014 movea.l A0, [A6 + 0x14]
000017A0 20AD FEE8 move.l [A0], [A5 - 0x118]
label000017A4:
000017A4 4EBA FE1C jsr [PC - 0x1E4 /* 000015C2 */]
000017A8 7001 moveq.l D0, 0x01
000017AA 2B40 FEDA move.l [A5 - 0x126], D0
000017AE 6000 0122 bra +0x124 /* 000018D2 */
label000017B2:
000017B2 2078 0316 movea.l A0, [0x00000316 /* HpChk/MacPgm */]
000017B6 2068 0004 movea.l A0, [A0 + 0x4]
000017BA 302D FEDE move.w D0, [A5 - 0x122]
000017BE B050 cmp.w D0, [A0]
000017C0 670C beq +0xE /* 000017CE */
000017C2 2F3C 8000 0000 move.l -[A7], 0x80000000
000017C8 4EBA 013C jsr [PC + 0x13C /* 00001906 */]
000017CC 588F addq.l A7, 4
label000017CE:
000017CE 41ED FEDE lea.l A0, [A5 - 0x122]
000017D2 2278 0316 movea.l A1, [0x00000316 /* HpChk/MacPgm */]
000017D6 2269 0004 movea.l A1, [A1 + 0x4]
000017DA 2348 0024 move.l [A1 + 0x24], A0
000017DE 2078 0316 movea.l A0, [0x00000316 /* HpChk/MacPgm */]
000017E2 2B68 0004 FF02 move.l [A5 - 0xFE], [A0 + 0x4]
000017E8 2078 0316 movea.l A0, [0x00000316 /* HpChk/MacPgm */]
000017EC 2068 0004 movea.l A0, [A0 + 0x4]
000017F0 2B68 0002 FEE0 move.l [A5 - 0x120], [A0 + 0x2]
000017F6 2078 0316 movea.l A0, [0x00000316 /* HpChk/MacPgm */]
000017FA 2068 0004 movea.l A0, [A0 + 0x4]
000017FE 2B68 0006 FEE4 move.l [A5 - 0x11C], [A0 + 0x6]
00001804 2078 0316 movea.l A0, [0x00000316 /* HpChk/MacPgm */]
00001808 2068 0004 movea.l A0, [A0 + 0x4]
0000180C 2B68 000A FEE8 move.l [A5 - 0x118], [A0 + 0xA]
00001812 4A86 tst.l D6
00001814 672C beq +0x2E /* 00001842 */
00001816 286D FEE4 movea.l A4, [A5 - 0x11C]
0000181A 600C bra +0xE /* 00001828 */
label0000181C:
0000181C 598F subq.l A7, 4
0000181E 2F14 move.l -[A7], [A4]
00001820 4EBA 04E8 jsr [PC + 0x4E8 /* 00001D0A */]
00001824 588F addq.l A7, 4
00001826 588C addq.l A4, 4
label00001828:
00001828 4A94 tst.l [A4]
0000182A 66F0 bne -0xE /* 0000181C */
0000182C 286D FEE8 movea.l A4, [A5 - 0x118]
00001830 600C bra +0xE /* 0000183E */
label00001832:
00001832 598F subq.l A7, 4
00001834 2F14 move.l -[A7], [A4]
00001836 4EBA 04D2 jsr [PC + 0x4D2 /* 00001D0A */]
0000183A 588F addq.l A7, 4
0000183C 588C addq.l A4, 4
label0000183E:
0000183E 4A94 tst.l [A4]
00001840 66F0 bne -0xE /* 00001832 */
label00001842:
00001842 200B move.l D0, A3
00001844 6704 beq +0x6 /* 0000184A */
00001846 26AD FEE0 move.l [A3], [A5 - 0x120]
label0000184A:
0000184A 4AAE 0010 tst.l [A6 + 0x10]
0000184E 6708 beq +0xA /* 00001858 */
00001850 206E 0010 movea.l A0, [A6 + 0x10]
00001854 20AD FEE4 move.l [A0], [A5 - 0x11C]
label00001858:
00001858 4AAE 0014 tst.l [A6 + 0x14]
0000185C 6708 beq +0xA /* 00001866 */
0000185E 206E 0014 movea.l A0, [A6 + 0x14]
00001862 20AD FEE8 move.l [A0], [A5 - 0x118]
label00001866:
00001866 2078 0316 movea.l A0, [0x00000316 /* HpChk/MacPgm */]
0000186A 2068 0004 movea.l A0, [A0 + 0x4]
0000186E 4AA8 0020 tst.l [A0 + 0x20]
00001872 6754 beq +0x56 /* 000018C8 */
00001874 7078 moveq.l D0, 0x78
00001876 A11E syscall NewPtr, flags=1
00001878 2B48 FEFE move.l [A5 - 0x102], A0
0000187C 660A bne +0xC /* 00001888 */
0000187E 7002 moveq.l D0, 0x02
00001880 2F00 move.l -[A7], D0
00001882 4EBA 0082 jsr [PC + 0x82 /* 00001906 */]
00001886 588F addq.l A7, 4
label00001888:
00001888 2078 0316 movea.l A0, [0x00000316 /* HpChk/MacPgm */]
0000188C 2068 0004 movea.l A0, [A0 + 0x4]
00001890 2668 0020 movea.l A3, [A0 + 0x20]
00001894 7E00 moveq.l D7, 0x00
00001896 7605 moveq.l D3, 0x05
label00001898:
00001898 2207 move.l D1, D7
0000189A 2001 move.l D0, D1
0000189C C2FC 0018 mulu.w D1, 0x18
000018A0 4840 swap.w D0
000018A2 C0FC 0018 mulu.w D0, 0x18
000018A6 4840 swap.w D0
000018A8 4240 clr.w D0
000018AA D280 add.l D1, D0
000018AC 2C01 move.l D6, D1
000018AE 206D FEFE movea.l A0, [A5 - 0x102]
000018B2 43F3 6800 lea.l A1, [A3 + D6]
000018B6 45F0 6800 lea.l A2, [A0 + D6]
000018BA 7005 moveq.l D0, 0x05
label000018BC:
000018BC 24D9 move.l [A2]+, [A1]+
000018BE 51C8 FFFC dbf D0, -0x6 /* 000018BC */
000018C2 5287 addq.l D7, 1
000018C4 B687 cmp.l D3, D7
000018C6 6ED0 bgt -0x2E /* 00001898 */
label000018C8:
000018C8 4EBA FCF8 jsr [PC - 0x308 /* 000015C2 */]
000018CC 7000 moveq.l D0, 0x00
000018CE 2B40 FEDA move.l [A5 - 0x126], D0
label000018D2:
000018D2 4CEE 1CC8 FFE8 movem.l D3,D6,D7,A2,A3,A4, [A6 - 0x18]
000018D8 4E5E unlink A6
000018DA 4E75 rts
000018DC 875F or.w [A7]+, D3
000018DE 5254 addq.w [A4], 1
000018E0 496E 6974 chk.w D4, [A6 + 0x6974]
000018E4 0000 4E56 ori.b D0, 0x56 /* 'V' */
// begin alternate branch 000018E6-000018F0
fn000018E6:
000018E6 4E56 0000 link A6, 0
000018EA 203C 00FF FFFF move.l D0, 0xFFFFFF
// end alternate branch 000018E6-000018F0
fn000018E6: // (misaligned)
000018E8 0000 203C ori.b D0, 0x3C /* '<' */
000018EC 00FF .incomplete
000018EE FFFF .invalid <<F/7/7>>
000018F0 C0AE 0008 and.l D0, [A6 + 0x8]
000018F4 2F00 move.l -[A7], D0
000018F6 4EBA 000E jsr [PC + 0xE /* 00001906 */]
000018FA 4E5E unlink A6
000018FC 4E75 rts
000018FE 8465 or.w D2, -[A5]
00001900 7869 moveq.l D4, 0x69
00001902 7400 moveq.l D2, 0x00
00001904 0000 4E56 ori.b D0, 0x56 /* 'V' */
// begin alternate branch 00001906-0000190C
fn00001906:
00001906 4E56 0000 link A6, 0
0000190A 2F0C move.l -[A7], A4
// end alternate branch 00001906-0000190C
fn00001906: // (misaligned)
00001908 0000 2F0C ori.b D0, 0xC
0000190C 206D FEF4 movea.l A0, [A5 - 0x10C]
00001910 49E8 008C lea.l A4, [A0 + 0x8C]
00001914 600A bra +0xC /* 00001920 */
label00001916:
00001916 4A94 tst.l [A4]
00001918 6704 beq +0x6 /* 0000191E */
0000191A 2054 movea.l A0, [A4]
0000191C 4E90 jsr [A0]
label0000191E:
0000191E 598C subq.l A4, 4
label00001920:
00001920 206D FEF4 movea.l A0, [A5 - 0x10C]
00001924 B1CC cmpa.l A0, A4
00001926 65EE bcs -0x10 /* 00001916 */
00001928 4AAD FF02 tst.l [A5 - 0xFE]
0000192C 670A beq +0xC /* 00001938 */
0000192E 206D FF02 movea.l A0, [A5 - 0xFE]
00001932 216E 0008 000E move.l [A0 + 0xE], [A6 + 0x8]
label00001938:
00001938 4AAD FFE8 tst.l [A5 - 0x18]
0000193C 660A bne +0xC /* 00001948 */
0000193E 206D FEF4 movea.l A0, [A5 - 0x10C]
00001942 2250 movea.l A1, [A0]
00001944 4E91 jsr [A1]
00001946 600E bra +0x10 /* 00001956 */
label00001948:
00001948 7001 moveq.l D0, 0x01
0000194A 2F00 move.l -[A7], D0
0000194C 486D FFD0 pea.l [A5 - 0x30]
00001950 4EBA 00E0 jsr [PC + 0xE0 /* 00001A32 */]
00001954 508F addq.l A7, 8
label00001956:
00001956 286E FFFC movea.l A4, [A6 - 0x4]
0000195A 4E5E unlink A6
0000195C 4E75 rts
0000195E 875F or.w [A7]+, D3
00001960 5254 addq.w [A4], 1
00001962 4578 6974 chk.w D2, [0x00006974]
00001966 0000 202F ori.b D0, 0x2F /* '/' */
0000196A 0004 222F ori.b D4, 0x2F /* '/' */
0000196E 0008 2F02 ori.b A0, 0x2
// begin alternate branch 00001970-00001972
fn00001970:
00001970 2F02 move.l -[A7], D2
// end alternate branch 00001970-00001972
fn00001970: // (misaligned)
00001972 2400 move.l D2, D0
00001974 C4C1 mulu.w D2, D1
00001976 2042 movea.l A0, D2
00001978 2401 move.l D2, D1
0000197A 4842 swap.w D2
0000197C C4C0 mulu.w D2, D0
0000197E 4840 swap.w D0
00001980 C2C0 mulu.w D1, D0
00001982 D441 add.w D2, D1
00001984 4842 swap.w D2
00001986 4242 clr.w D2
00001988 D1C2 add.l A0, D2
0000198A 2008 move.l D0, A0
0000198C 241F move.l D2, [A7]+
0000198E 4E75 rts
00001990 222F 0004 move.l D1, [A7 + 0x4]
00001994 202F 0008 move.l D0, [A7 + 0x8]
fn00001998:
00001998 4EBA 000E jsr [PC + 0xE /* 000019A8 */]
0000199C 2001 move.l D0, D1
0000199E 4E75 rts
000019A0 222F 0004 move.l D1, [A7 + 0x4]
000019A4 202F 0008 move.l D0, [A7 + 0x8]
fn000019A8:
000019A8 48E7 0600 movem.l -[A7], D5,D6
000019AC 2A00 move.l D5, D0
000019AE 6A02 bpl +0x4 /* 000019B2 */
000019B0 4480 neg.l D0
label000019B2:
000019B2 2C01 move.l D6, D1
000019B4 6A02 bpl +0x4 /* 000019B8 */
000019B6 4481 neg.l D1
label000019B8:
000019B8 4EBA 001C jsr [PC + 0x1C /* 000019D6 */]
000019BC 4A85 tst.l D5
000019BE 6A02 bpl +0x4 /* 000019C2 */
000019C0 4480 neg.l D0
label000019C2:
000019C2 BB86 xor.l D6, D5
000019C4 6A02 bpl +0x4 /* 000019C8 */
000019C6 4481 neg.l D1
label000019C8:
000019C8 4CDF 0060 movem.l D5,D6, [A7]+
000019CC 4E75 rts
000019CE 222F 0004 move.l D1, [A7 + 0x4]
000019D2 202F 0008 move.l D0, [A7 + 0x8]
fn000019D6:
000019D6 48E7 3800 movem.l -[A7], D2,D3,D4
000019DA 2401 move.l D2, D1
000019DC 4842 swap.w D2
000019DE 4A42 tst.w D2
000019E0 661C bne +0x1E /* 000019FE */
000019E2 3600 move.w D3, D0
000019E4 4240 clr.w D0
000019E6 4840 swap.w D0
000019E8 6704 beq +0x6 /* 000019EE */
000019EA 80C1 divu.w D0, D1
000019EC 3400 move.w D2, D0
label000019EE:
000019EE 4842 swap.w D2
000019F0 3003 move.w D0, D3
000019F2 80C1 divu.w D0, D1
000019F4 3400 move.w D2, D0
000019F6 2202 move.l D1, D2
000019F8 4240 clr.w D0
000019FA 4840 swap.w D0
000019FC 6022 bra +0x24 /* 00001A20 */
label000019FE:
000019FE 2400 move.l D2, D0
00001A00 4240 clr.w D0
00001A02 4840 swap.w D0
00001A04 4842 swap.w D2
00001A06 4242 clr.w D2
00001A08 2601 move.l D3, D1
00001A0A 7200 moveq.l D1, 0x00
00001A0C 780F moveq.l D4, 0x0F
label00001A0E:
00001A0E D482 add.l D2, D2
00001A10 D180 addx.l D0, D0
00001A12 D281 add.l D1, D1
00001A14 B083 cmp.l D0, D3
00001A16 6504 bcs +0x6 /* 00001A1C */
00001A18 9083 sub.l D0, D3
00001A1A 5201 addq.b D1, 1
label00001A1C:
00001A1C 51CC FFF0 dbf D4, -0x12 /* 00001A0E */
label00001A20:
00001A20 4CDF 001C movem.l D2,D3,D4, [A7]+
00001A24 4E75 rts
fn00001A26:
00001A26 225F movea.l A1, [A7]+
00001A28 2057 movea.l A0, [A7]
00001A2A 48D0 DEFC movem.l [A0], D2,D3,D4,D5,D6,D7,A1,A2,A3,A4,A6,A7
00001A2E 7000 moveq.l D0, 0x00
00001A30 4ED1 jmp [A1]
fn00001A32:
00001A32 202F 0008 move.l D0, [A7 + 0x8]
00001A36 6602 bne +0x4 /* 00001A3A */
00001A38 7001 moveq.l D0, 0x01
label00001A3A:
00001A3A 206F 0004 movea.l A0, [A7 + 0x4]
00001A3E 4CD0 DEFC movem.l D2,D3,D4,D5,D6,D7,A1,A2,A3,A4,A6,A7, [A0]
00001A42 4ED1 jmp [A1]
00001A44 4E71 nop
label00001A46:
00001A46 7000 moveq.l D0, 0x00
label00001A48:
00001A48 2F09 move.l -[A7], A1
label00001A4A:
00001A4A 31C0 0220 move.w [0x00000220 /* MemErr */], D0
00001A4E 4E75 rts
00001A50 7000 moveq.l D0, 0x00
00001A52 60F6 bra -0x8 /* 00001A4A */
fn00001A54:
00001A54 225F movea.l A1, [A7]+
00001A56 205F movea.l A0, [A7]+
00001A58 A025 syscall GetHandleSize
00001A5A 2E80 move.l [A7], D0
00001A5C 6A06 bpl +0x8 /* 00001A64 */
00001A5E 4297 clr.l [A7]
00001A60 4EFA FFE6 jmp [PC - 0x1A /* 00001A48 */]
label00001A64:
00001A64 4EFA FFE0 jmp [PC - 0x20 /* 00001A46 */]
fn00001A68:
00001A68 225F movea.l A1, [A7]+
00001A6A 121F move.b D1, [A7]+
00001A6C 301F move.w D0, [A7]+
00001A6E 4A01 tst.b D1
00001A70 6704 beq +0x6 /* 00001A76 */
00001A72 A746 syscall GetToolBoxTrapAddress/GetToolTrapAddress, flags=7
00001A74 6002 bra +0x4 /* 00001A78 */
label00001A76:
00001A76 A346 syscall GetOSTrapAddress, flags=3
label00001A78:
00001A78 2E88 move.l [A7], A0
00001A7A 4ED1 jmp [A1]
fn00001A7C:
00001A7C 4E56 FFCE link A6, -0x0032
00001A80 204F movea.l A0, A7
00001A82 216E 000E 0012 move.l [A0 + 0x12], [A6 + 0xE]
00001A88 316E 000C 0016 move.w [A0 + 0x16], [A6 + 0xC]
00001A8E 4228 001A clr.b [A0 + 0x1A]
00001A92 4228 001B clr.b [A0 + 0x1B]
00001A96 42A8 001C clr.l [A0 + 0x1C]
00001A9A A000 syscall Open/PBHOpen/HOpen
00001A9C 226E 0008 movea.l A1, [A6 + 0x8]
00001AA0 32A8 0018 move.w [A1], [A0 + 0x18]
00001AA4 3D40 0012 move.w [A6 + 0x12], D0
00001AA8 4E5E unlink A6
00001AAA 205F movea.l A0, [A7]+
00001AAC 4FEF 000A lea.l A7, [A7 + 0xA]
00001AB0 4ED0 jmp [A0]
fn00001AB2:
00001AB2 4E56 FFCE link A6, -0x0032
00001AB6 204F movea.l A0, A7
00001AB8 316E 0008 0018 move.w [A0 + 0x18], [A6 + 0x8]
00001ABE A001 syscall Close
00001AC0 3D40 000A move.w [A6 + 0xA], D0
00001AC4 4E5E unlink A6
00001AC6 205F movea.l A0, [A7]+
00001AC8 548F addq.l A7, 2
00001ACA 4ED0 jmp [A0]
fn00001ACC:
00001ACC 51C1 sf D1
00001ACE 6002 bra +0x4 /* 00001AD2 */
fn00001AD0:
00001AD0 50C1 st D1
label00001AD2:
00001AD2 4E56 FFCE link A6, -0x0032
00001AD6 204F movea.l A0, A7
00001AD8 216E 0008 0020 move.l [A0 + 0x20], [A6 + 0x8]
00001ADE 316E 0010 0018 move.w [A0 + 0x18], [A6 + 0x10]
00001AE4 226E 000C movea.l A1, [A6 + 0xC]
00001AE8 2151 0024 move.l [A0 + 0x24], [A1]
00001AEC 4268 002C clr.w [A0 + 0x2C]
00001AF0 42A8 002E clr.l [A0 + 0x2E]
00001AF4 4A01 tst.b D1
00001AF6 6604 bne +0x6 /* 00001AFC */
00001AF8 A002 syscall Read
00001AFA 6002 bra +0x4 /* 00001AFE */
label00001AFC:
00001AFC A003 syscall Write
label00001AFE:
00001AFE 3D40 0012 move.w [A6 + 0x12], D0
00001B02 226E 000C movea.l A1, [A6 + 0xC]
00001B06 22A8 0028 move.l [A1], [A0 + 0x28]
00001B0A 4E5E unlink A6
00001B0C 225F movea.l A1, [A7]+
00001B0E 4FEF 000A lea.l A7, [A7 + 0xA]
00001B12 4ED1 jmp [A1]
fn00001B14:
00001B14 4E56 FFC0 link A6, -0x0040
00001B18 41EE FFC0 lea.l A0, [A6 - 0x40]
00001B1C 216E 000C 0012 move.l [A0 + 0x12], [A6 + 0xC]
00001B22 A014 syscall GetVol/PBHGetVol/HGetVol
00001B24 3D40 0010 move.w [A6 + 0x10], D0
00001B28 226E 0008 movea.l A1, [A6 + 0x8]
00001B2C 32A8 0016 move.w [A1], [A0 + 0x16]
00001B30 4E5E unlink A6
00001B32 225F movea.l A1, [A7]+
00001B34 508F addq.l A7, 8
00001B36 4ED1 jmp [A1]
fn00001B38:
00001B38 4E56 0000 link A6, 0
00001B3C 594F subq.w A7, 4
00001B3E 2F3C 5354 5223 move.l -[A7], 0x53545223 /* 'STR#' */
00001B44 3F2E 000A move.w -[A7], [A6 + 0xA]
00001B48 A9A0 syscall GetResource
00001B4A 226E 000C movea.l A1, [A6 + 0xC]
00001B4E 4211 clr.b [A1]
00001B50 201F move.l D0, [A7]+
00001B52 6722 beq +0x24 /* 00001B76 */
00001B54 2040 movea.l A0, D0
00001B56 2050 movea.l A0, [A0]
00001B58 3018 move.w D0, [A0]+
00001B5A 322E 0008 move.w D1, [A6 + 0x8]
00001B5E 6716 beq +0x18 /* 00001B76 */
00001B60 B240 cmp.w D1, D0
00001B62 6212 bhi +0x14 /* 00001B76 */
00001B64 7000 moveq.l D0, 0x00
label00001B66:
00001B66 5341 subq.w D1, 1
00001B68 6706 beq +0x8 /* 00001B70 */
00001B6A 1018 move.b D0, [A0]+
00001B6C D1C0 add.l A0, D0
00001B6E 60F6 bra -0x8 /* 00001B66 */
label00001B70:
00001B70 1010 move.b D0, [A0]
00001B72 5240 addq.w D0, 1
00001B74 A02E syscall BlockMove/BlockMoveData
label00001B76:
00001B76 4E5E unlink A6
00001B78 205F movea.l A0, [A7]+
00001B7A 508F addq.l A7, 8
00001B7C 4ED0 jmp [A0]
fn00001B7E:
00001B7E 4A78 028E tst.w [0x0000028E /* ROM85 */]
00001B82 6B22 bmi +0x24 /* 00001BA6 */
00001B84 303C 0090 move.w D0, 0x90
00001B88 A346 syscall GetOSTrapAddress, flags=3
00001B8A 2248 movea.l A1, A0
00001B8C 303C 009F move.w D0, 0x9F
00001B90 A746 syscall GetToolBoxTrapAddress/GetToolTrapAddress, flags=7
00001B92 B3C8 cmpa.l A1, A0
00001B94 6710 beq +0x12 /* 00001BA6 */
00001B96 225F movea.l A1, [A7]+
00001B98 205F movea.l A0, [A7]+
00001B9A 301F move.w D0, [A7]+
00001B9C 2F09 move.l -[A7], A1
00001B9E A090 syscall SysEnvirons
00001BA0 3F40 0004 move.w [A7 + 0x4], D0
00001BA4 4E75 rts
label00001BA6:
00001BA6 206F 0004 movea.l A0, [A7 + 0x4]
00001BAA 303C 0001 move.w D0, 0x1
00001BAE 2248 movea.l A1, A0
00001BB0 6006 bra +0x8 /* 00001BB8 */
00001BB2 0313 btst [A3], D1
00001BB4 0B02 btst D2, D5
00001BB6 0100 btst D0, D0
label00001BB8:
00001BB8 303C 0010 move.w D0, 0x10
00001BBC E240 asr D0.w, 1
00001BBE 5340 subq.w D0, 1
label00001BC0:
00001BC0 4258 clr.w [A0]+
00001BC2 51C8 FFFC dbf D0, -0x6 /* 00001BC0 */
00001BC6 32BC 0001 move.w [A1], 0x1
00001BCA 2078 02AE movea.l A0, [0x000002AE /* ROMBase */]
00001BCE 337C FFFE 0002 move.w [A1 + 0x2], 0xFFFE
00001BD4 0C28 00FF 0009 cmpi.b [A0 + 0x9], 0xFF
00001BDA 6742 beq +0x44 /* 00001C1E */
00001BDC 4A28 0008 tst.b [A0 + 0x8]
00001BE0 6E20 bgt +0x22 /* 00001C02 */
00001BE2 337C FFFF 0002 move.w [A1 + 0x2], 0xFFFF
00001BE8 4A78 028E tst.w [0x0000028E /* ROM85 */]
00001BEC 6B30 bmi +0x32 /* 00001C1E */
00001BEE 337C 0001 0002 move.w [A1 + 0x2], 0x1
00001BF4 4A78 0B22 tst.w [0x00000B22 /* HWCfgFlags */]
00001BF8 6A24 bpl +0x26 /* 00001C1E */
00001BFA 337C 0002 0002 move.w [A1 + 0x2], 0x2
00001C00 601C bra +0x1E /* 00001C1E */
label00001C02:
00001C02 4269 0002 clr.w [A1 + 0x2]
00001C06 0C28 0002 0008 cmpi.b [A0 + 0x8], 0x2
00001C0C 6E10 bgt +0x12 /* 00001C1E */
00001C0E 6708 beq +0xA /* 00001C18 */
00001C10 337C 0004 0002 move.w [A1 + 0x2], 0x4
00001C16 6006 bra +0x8 /* 00001C1E */
label00001C18:
00001C18 337C 0003 0002 move.w [A1 + 0x2], 0x3
label00001C1E:
00001C1E 4269 0004 clr.w [A1 + 0x4]
00001C22 0C38 0002 012F cmpi.b [0x0000012F /* CPUFlag */], 0x2
00001C28 6E0A bgt +0xC /* 00001C34 */
00001C2A 1038 012F move.b D0, [0x0000012F /* CPUFlag */]
00001C2E 5240 addq.w D0, 1
00001C30 1340 0007 move.b [A1 + 0x7], D0
label00001C34:
00001C34 4A78 028E tst.w [0x0000028E /* ROM85 */]
00001C38 6B0E bmi +0x10 /* 00001C48 */
00001C3A 0838 0004 0B22 btst.b [0x00000B22 /* HWCfgFlags */], 0x4
00001C40 6706 beq +0x8 /* 00001C48 */
00001C42 137C 0001 0008 move.b [A1 + 0x8], 0x1
label00001C48:
00001C48 0C78 3FFF 028E cmpi.w [0x0000028E /* ROM85 */], 0x3FFF
00001C4E 6206 bhi +0x8 /* 00001C56 */
00001C50 137C 0001 0009 move.b [A1 + 0x9], 0x1
label00001C56:
00001C56 1038 021E move.b D0, [0x0000021E /* KbdType */]
00001C5A 41FA FF5B lea.l A0, [PC - 0xA5 /* 00001BB7, value 0x303C00 '0<\0', cstring "" */]
00001C5E 323C 0004 move.w D1, 0x4
label00001C62:
00001C62 B020 cmp.b D0, -[A0]
00001C64 57C9 FFFC dbeq D1, -0x6 /* 00001C62 */
00001C68 5241 addq.w D1, 1
00001C6A 3341 000A move.w [A1 + 0xA], D1
00001C6E 4A38 0291 tst.b [0x00000291 /* PortBUse */]
00001C72 6B18 bmi +0x1A /* 00001C8C */
00001C74 1238 01FB move.b D1, [0x000001FB /* SPConfig */]
00001C78 0201 000F andi.b D1, 0xF
00001C7C 0C01 0001 cmpi.b D1, 0x1
00001C80 660A bne +0xC /* 00001C8C */
00001C82 2078 02DC movea.l A0, [0x000002DC /* ABusDCE */]
00001C86 1368 0007 000D move.b [A1 + 0xD], [A0 + 0x7]
label00001C8C:
00001C8C 3378 0210 000E move.w [A1 + 0xE], [0x00000210 /* BootDrive */]
00001C92 4A78 03F6 tst.w [0x000003F6 /* FSFCBLen */]
00001C96 6D44 blt +0x46 /* 00001CDC */
00001C98 4269 000E clr.w [A1 + 0xE]
00001C9C 323C 003C move.w D1, 0x3C /* '<' */
label00001CA0:
00001CA0 4267 clr.w -[A7]
00001CA2 51C9 FFFC dbf D1, -0x6 /* 00001CA0 */
00001CA6 204F movea.l A0, A7
00001CA8 3178 0A58 0018 move.w [A0 + 0x18], [0x00000A58 /* SysMap */]
00001CAE 7008 moveq.l D0, 0x08
00001CB0 A260 syscall FSDispatch/HFSDispatch, flags=2
00001CB2 6624 bne +0x26 /* 00001CD8 */
00001CB4 3168 0034 0016 move.w [A0 + 0x16], [A0 + 0x34]
00001CBA A207 syscall GetVolInfo/PBHGetVInfo/HGetVInfo, flags=2
00001CBC 661A bne +0x1C /* 00001CD8 */
00001CBE 2168 005A 0030 move.l [A0 + 0x30], [A0 + 0x5A]
00001CC4 217C 4552 494B 001C move.l [A0 + 0x1C], 0x4552494B /* 'ERIK' */
00001CCC 7001 moveq.l D0, 0x01
00001CCE A260 syscall FSDispatch/HFSDispatch, flags=2
00001CD0 6606 bne +0x8 /* 00001CD8 */
00001CD2 3368 0016 000E move.w [A1 + 0xE], [A0 + 0x16]
label00001CD8:
00001CD8 4FEF 007A lea.l A7, [A7 + 0x7A]
label00001CDC:
00001CDC 2049 movea.l A0, A1
00001CDE 225F movea.l A1, [A7]+
00001CE0 5C4F addq.w A7, 6
00001CE2 3EBC EA84 move.w [A7], 0xEA84
00001CE6 4ED1 jmp [A1]
fn00001CE8:
00001CE8 7402 moveq.l D2, 0x02
label00001CEA:
00001CEA 205F movea.l A0, [A7]+
00001CEC 3F02 move.w -[A7], D2
00001CEE 2F08 move.l -[A7], A0
00001CF0 ADE9 syscall Pack2, auto_pop
fn00001CF2:
00001CF2 7400 moveq.l D2, 0x00
00001CF4 4EFA FFF4 jmp [PC - 0xC /* 00001CEA */]
fn00001CF8:
00001CF8 206F 0004 movea.l A0, [A7 + 0x4]
00001CFC 202F 0008 move.l D0, [A7 + 0x8]
00001D00 4267 clr.w -[A7]
00001D02 A9EE syscall Pack7/DecStr68K
00001D04 205F movea.l A0, [A7]+
00001D06 504F addq.w A7, 8
00001D08 4ED0 jmp [A0]
fn00001D0A:
00001D0A 202F 0004 move.l D0, [A7 + 0x4]
00001D0E 2F40 0008 move.l [A7 + 0x8], D0
00001D12 6726 beq +0x28 /* 00001D3A */
00001D14 2040 movea.l A0, D0
00001D16 2248 movea.l A1, A0
00001D18 1019 move.b D0, [A1]+
00001D1A 671E beq +0x20 /* 00001D3A */
label00001D1C:
00001D1C 1211 move.b D1, [A1]
00001D1E 12C0 move.b [A1]+, D0
00001D20 1001 move.b D0, D1
00001D22 66F8 bne -0x6 /* 00001D1C */
00001D24 93C8 sub.l A1, A0
00001D26 2009 move.l D0, A1
00001D28 5340 subq.w D0, 1
00001D2A 0C80 0000 00FF cmpi.l D0, 0xFF
00001D30 6F06 ble +0x8 /* 00001D38 */
00001D32 203C 0000 00FF move.l D0, 0xFF
label00001D38:
00001D38 1080 move.b [A0], D0
label00001D3A:
00001D3A 225F movea.l A1, [A7]+
00001D3C 584F addq.w A7, 4
00001D3E 4ED1 jmp [A1]
fn00001D40:
00001D40 225F movea.l A1, [A7]+
00001D42 201F move.l D0, [A7]+
00001D44 2E80 move.l [A7], D0
00001D46 6712 beq +0x14 /* 00001D5A */
00001D48 2040 movea.l A0, D0
00001D4A 7000 moveq.l D0, 0x00
00001D4C 1010 move.b D0, [A0]
00001D4E 6004 bra +0x6 /* 00001D54 */
label00001D50:
00001D50 10E8 0001 move.b [A0]+, [A0 + 0x1]
label00001D54:
00001D54 51C8 FFFA dbf D0, -0x8 /* 00001D50 */
00001D58 4210 clr.b [A0]
label00001D5A:
00001D5A 4ED1 jmp [A1]